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