Method GetShorts
GetShorts(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in field
as shorts and returns an array
of size reader.MaxDoc
of the value each document
has in the given field.
Declaration
short[] GetShorts(IndexReader reader, String field)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | Used to get field values. |
System.String | field | Which field contains the shorts. |
Returns
Type | Description |
---|---|
System.Int16[] | The values in the given field for each document. |
GetShorts(IndexReader, String, ShortParser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms in field
as shorts and returns an array of
size reader.MaxDoc
of the value each document has in the
given field.
Declaration
short[] GetShorts(IndexReader reader, String field, ShortParser parser)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | Used to get field values. |
System.String | field | Which field contains the shorts. |
ShortParser | parser | Computes short for string values. |
Returns
Type | Description |
---|---|
System.Int16[] | The values in the given field for each document. |