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