Method GetBytes
GetBytes(AtomicReader, String, Boolean)
Checks the internal cache for an appropriate entry, and if none is
found, reads the terms in field
as a single reader.MaxDoc
of the value each document
has in the given field.
Declaration
FieldCache.Bytes GetBytes(AtomicReader reader, string field, bool setDocsWithField)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | reader | Used to get field values. |
System.String | field | Which field contains the single |
System.Boolean | setDocsWithField | If true then GetDocsWithField(AtomicReader, String) will also be computed and stored in the IFieldCache. |
Returns
Type | Description |
---|---|
FieldCache.Bytes | The values in the given field for each document. |
GetBytes(AtomicReader, String, FieldCache.IByteParser, Boolean)
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
FieldCache.Bytes GetBytes(AtomicReader reader, string field, FieldCache.IByteParser parser, bool setDocsWithField)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | reader | Used to get field values. |
System.String | field | Which field contains the |
FieldCache.IByteParser | parser | Computes |
System.Boolean | setDocsWithField | If true then GetDocsWithField(AtomicReader, String) will also be computed and stored in the IFieldCache. |
Returns
Type | Description |
---|---|
FieldCache.Bytes | The values in the given field for each document. |