Module org.elasticsearch.server
Interface LeafNumericFieldData
- All Superinterfaces:
org.apache.lucene.util.Accountable,AutoCloseable,Closeable,LeafFieldData,Releasable
- All Known Implementing Classes:
BooleanScriptFieldData.BooleanScriptLeafFieldData,DateScriptFieldData.DateScriptLeafFieldData,DoubleScriptFieldData.DoubleScriptLeafFieldData,LeafDoubleFieldData,LeafLongFieldData,LongScriptFieldData.LongScriptLeafFieldData,SortedNumericIndexFieldData.NanoSecondFieldData
Specialization of
LeafFieldData for numeric data.-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionReturn a floating-point view of the values in this segment.Get an integer view of the values of this segment.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsedMethods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData
close, getBytesValues, getFormattedValues, getScriptFieldFactory
-
Method Details
-
getLongValues
SortedNumericLongValues 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.
-