Interface LeafNumericFieldData
- All Superinterfaces:
org.apache.lucene.util.Accountable
,java.lang.AutoCloseable
,java.io.Closeable
,LeafFieldData
,Releasable
- All Known Implementing Classes:
SortedNumericDVIndexFieldData.NanoSecondFieldData
public interface LeafNumericFieldData extends LeafFieldData
Specialization of
LeafFieldData
for numeric data.-
Method Summary
Modifier and Type Method Description SortedNumericDoubleValues
getDoubleValues()
Return a floating-point view of the values in this segment.org.apache.lucene.index.SortedNumericDocValues
getLongValues()
Get an integer view of the values of this segment.Methods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData
getBytesValues, getScriptValues
-
Method Details
-
getLongValues
org.apache.lucene.index.SortedNumericDocValues getLongValues()Get an integer view of the values of this segment. If the implementation stores floating-point numbers then these values will return the same values but casted to longs. -
getDoubleValues
SortedNumericDoubleValues getDoubleValues()Return a floating-point view of the values in this segment. If the implementation stored integers then the returned doubles would be the same ones as you would get from casting to a double.
-