Module org.elasticsearch.server
Class SortedNumericIndexFieldData.NanoSecondFieldData
java.lang.Object
org.elasticsearch.index.fielddata.plain.LeafLongFieldData
org.elasticsearch.index.fielddata.plain.SortedNumericIndexFieldData.NanoSecondFieldData
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable,Releasable,LeafFieldData,LeafNumericFieldData
- Enclosing class:
SortedNumericIndexFieldData
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ToScriptFieldFactory<org.apache.lucene.index.SortedNumericDocValues> Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptiongetFormattedValues(DocValueFormat format) Return a formatted representation of the valuesorg.apache.lucene.index.SortedNumericDocValuesGet an integer view of the values of this segment.org.apache.lucene.index.SortedNumericDocValuesgetScriptFieldFactory(String name) Methods inherited from class org.elasticsearch.index.fielddata.plain.LeafLongFieldData
getBytesValues, getDoubleValues, ramBytesUsedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResourcesMethods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData
close
-
Field Details
-
toScriptFieldFactory
protected final ToScriptFieldFactory<org.apache.lucene.index.SortedNumericDocValues> toScriptFieldFactory
-
-
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() -
getScriptFieldFactory
Description copied from interface:LeafFieldData -
getFormattedValues
Description copied from interface:LeafFieldDataReturn a formatted representation of the values- Specified by:
getFormattedValuesin interfaceLeafFieldData- Overrides:
getFormattedValuesin classLeafLongFieldData
-