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
Modifier and TypeFieldDescriptionstatic final DoubleValues
An empty DoubleValues instance that always returnsfalse
fromadvanceExact(int)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
advanceExact
(int doc) Advance this instance to the given document idabstract double
Get the double value for the current documentstatic DoubleValues
withDefault
(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 returnsfalse
fromadvanceExact(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
-