Class SortedNumericIndexFieldData.NanoSecondFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.SortedNumericIndexFieldData.NanoSecondFieldData
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.util.Accountable,Releasable,LeafFieldData,LeafNumericFieldData
- Enclosing class:
- SortedNumericIndexFieldData
public final class SortedNumericIndexFieldData.NanoSecondFieldData
extends java.lang.Object
A small helper class that can be configured to load nanosecond field data either in nanosecond resolution retaining the original
values or in millisecond resolution converting the nanosecond values to milliseconds
-
Method Summary
Modifier and Type Method Description voidclose()SortedBinaryDocValuesgetBytesValues()Return a String representation of the values.SortedNumericDoubleValuesgetDoubleValues()Return a floating-point view of the values in this segment.org.apache.lucene.index.SortedNumericDocValuesgetLongValues()Get an integer view of the values of this segment.org.apache.lucene.index.SortedNumericDocValuesgetLongValuesAsNanos()ScriptDocValues<?>getScriptValues()Returns field values for use in scripting.longramBytesUsed()
-
Method Details
-
getLongValues
public org.apache.lucene.index.SortedNumericDocValues getLongValues()Description copied from interface:LeafNumericFieldDataGet 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. -
getLongValuesAsNanos
public org.apache.lucene.index.SortedNumericDocValues getLongValuesAsNanos() -
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getScriptValues
Description copied from interface:LeafFieldDataReturns field values for use in scripting.- Specified by:
getScriptValuesin interfaceLeafFieldData
-
getBytesValues
Description copied from interface:LeafFieldDataReturn a String representation of the values.- Specified by:
getBytesValuesin interfaceLeafFieldData
-
getDoubleValues
Description copied from interface:LeafNumericFieldDataReturn 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.- Specified by:
getDoubleValuesin interfaceLeafNumericFieldData
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceReleasable
-