Class SortedNumericDVIndexFieldData.NanoSecondFieldData
- java.lang.Object
-
- org.elasticsearch.index.fielddata.plain.SortedNumericDVIndexFieldData.NanoSecondFieldData
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable,Releasable,AtomicFieldData,AtomicNumericFieldData
- Enclosing class:
- SortedNumericDVIndexFieldData
public final class SortedNumericDVIndexFieldData.NanoSecondFieldData extends 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
All Methods Instance Methods Concrete Methods 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.SortedNumericDocValuesgetLongValues()Get an integer view of the values of this segment.SortedNumericDocValuesgetLongValuesAsNanos()ScriptDocValues<?>getScriptValues()Returns field values for use in scripting.longramBytesUsed()Return the memory usage of this object in bytes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Method Detail
-
getLongValues
public SortedNumericDocValues getLongValues()
Description copied from interface:AtomicNumericFieldDataGet 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 SortedNumericDocValues getLongValuesAsNanos()
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
getScriptValues
public final ScriptDocValues<?> getScriptValues()
Description copied from interface:AtomicFieldDataReturns field values for use in scripting.- Specified by:
getScriptValuesin interfaceAtomicFieldData
-
getBytesValues
public final SortedBinaryDocValues getBytesValues()
Description copied from interface:AtomicFieldDataReturn a String representation of the values.- Specified by:
getBytesValuesin interfaceAtomicFieldData
-
getDoubleValues
public final SortedNumericDoubleValues getDoubleValues()
Description copied from interface:AtomicNumericFieldDataReturn 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 interfaceAtomicNumericFieldData
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
-