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, org.elasticsearch.core.Releasable, LeafFieldData, LeafNumericFieldData
Enclosing class:
SortedNumericIndexFieldData

public final class SortedNumericIndexFieldData.NanoSecondFieldData extends LeafLongFieldData
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 Details

    • getLongValues

      public org.apache.lucene.index.SortedNumericDocValues getLongValues()
      Description copied from interface: LeafNumericFieldData
      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()
    • getFormattedValues

      public FormattedDocValues getFormattedValues(DocValueFormat format)
      Description copied from interface: LeafFieldData
      Return a formatted representation of the values
      Specified by:
      getFormattedValues in interface LeafFieldData
      Overrides:
      getFormattedValues in class LeafLongFieldData