Method GetSingles
GetSingles(AtomicReader, String, Boolean)
Returns a FieldCache.Singles over the values found in documents in the given field.
NOTE: this was getFloats() in Lucene
Declaration
FieldCache.Singles GetSingles(AtomicReader reader, string field, bool setDocsWithField)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | reader | |
System.String | field | |
System.Boolean | setDocsWithField |
Returns
Type | Description |
---|---|
FieldCache.Singles |
See Also
GetSingles(AtomicReader, String, FieldCache.ISingleParser, Boolean)
Returns a FieldCache.Singles over the values found in documents in the given
field. If the field was indexed as NumericDocValuesField, it simply
uses GetNumericDocValues(String) to read the values.
Otherwise, it checks the internal cache for an appropriate entry, and if
none is found, reads the terms in field
as reader.MaxDoc
of the value each document
has in the given field.
NOTE: this was getFloats() in Lucene
Declaration
FieldCache.Singles GetSingles(AtomicReader reader, string field, FieldCache.ISingleParser parser, bool setDocsWithField)
Parameters
Type | Name | Description |
---|---|---|
AtomicReader | reader | Used to get field values. |
System.String | field | Which field contains the |
FieldCache.ISingleParser | parser | Computes |
System.Boolean | setDocsWithField | If true then GetDocsWithField(AtomicReader, String) will also be computed and stored in the IFieldCache. |
Returns
Type | Description |
---|---|
FieldCache.Singles | The values in the given field for each document. |