Class SortedNumericDVIndexFieldData.NanoSecondFieldData
- java.lang.Object
-
- org.elasticsearch.index.fielddata.plain.SortedNumericDVIndexFieldData.NanoSecondFieldData
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.lucene.util.Accountable
,Releasable
,AtomicFieldData
,AtomicNumericFieldData
- Enclosing class:
- SortedNumericDVIndexFieldData
public final class SortedNumericDVIndexFieldData.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 void
close()
SortedBinaryDocValues
getBytesValues()
Return a String representation of the values.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.org.apache.lucene.index.SortedNumericDocValues
getLongValuesAsNanos()
ScriptDocValues<?>
getScriptValues()
Returns field values for use in scripting.long
ramBytesUsed()
-
-
-
Method Detail
-
getLongValues
public org.apache.lucene.index.SortedNumericDocValues getLongValues()
Description copied from interface:AtomicNumericFieldData
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.
-
getLongValuesAsNanos
public org.apache.lucene.index.SortedNumericDocValues getLongValuesAsNanos()
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-
getScriptValues
public final ScriptDocValues<?> getScriptValues()
Description copied from interface:AtomicFieldData
Returns field values for use in scripting.- Specified by:
getScriptValues
in interfaceAtomicFieldData
-
getBytesValues
public final SortedBinaryDocValues getBytesValues()
Description copied from interface:AtomicFieldData
Return a String representation of the values.- Specified by:
getBytesValues
in interfaceAtomicFieldData
-
getDoubleValues
public final SortedNumericDoubleValues getDoubleValues()
Description copied from interface:AtomicNumericFieldData
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.- Specified by:
getDoubleValues
in interfaceAtomicNumericFieldData
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceReleasable
-
-