Package org.apache.lucene.search
Class DoubleValues
java.lang.Object
org.apache.lucene.search.DoubleValues
Per-segment, per-document double values, which can be calculated at search-time
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DoubleValuesAn empty DoubleValues instance that always returnsfalsefromadvanceExact(int) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int doc) Advance this instance to the given document idabstract doubleGet the double value for the current documentstatic DoubleValueswithDefault(DoubleValues in, double missingValue) Wrap a DoubleValues instance, returning a default if the wrapped instance has no value
-
Field Details
-
EMPTY
An empty DoubleValues instance that always returnsfalsefromadvanceExact(int)
-
-
Constructor Details
-
DoubleValues
public DoubleValues()
-
-
Method Details
-
doubleValue
Get the double value for the current document- Throws:
IOException
-
advanceExact
Advance this instance to the given document id- Returns:
- true if there is a value for this document
- Throws:
IOException
-
withDefault
Wrap a DoubleValues instance, returning a default if the wrapped instance has no value
-