Class NumericDoubleValues
java.lang.Object
org.apache.lucene.search.DoubleValues
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.NumericDoubleValues
public abstract class NumericDoubleValues
extends org.apache.lucene.search.DoubleValues
A per-document numeric value.
Copied and adapted from org.elasticsearch.index.fielddata.NumericDoubleValues class
of Elasticsearch project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumericDoubleValuesAn empty NumericDoubleValues instance that always returnsfalsefromDoubleValues.advanceExact(int) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumericDoubleValuesfromField(org.apache.lucene.index.NumericDocValues values, LongToDoubleFunction decoder) org.apache.lucene.index.NumericDocValuesReturns numeric docvalues view of raw double bitsorg.apache.lucene.index.NumericDocValuesReturns numeric docvalues view of raw float bitsMethods inherited from class org.apache.lucene.search.DoubleValues
advanceExact, doubleValue, withDefault
-
Field Details
-
EMPTY
An empty NumericDoubleValues instance that always returnsfalsefromDoubleValues.advanceExact(int)
-
-
Constructor Details
-
NumericDoubleValues
protected NumericDoubleValues()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
getRawDoubleValues
public org.apache.lucene.index.NumericDocValues getRawDoubleValues()Returns numeric docvalues view of raw double bits- Returns:
- numeric
-
getRawFloatValues
public org.apache.lucene.index.NumericDocValues getRawFloatValues()Returns numeric docvalues view of raw float bits- Returns:
- numeric
-
fromField
public static NumericDoubleValues fromField(org.apache.lucene.index.NumericDocValues values, LongToDoubleFunction decoder)
-