Interface LeafNumericFieldData

All Superinterfaces:
org.apache.lucene.util.Accountable, AutoCloseable, Closeable, LeafFieldData, org.elasticsearch.core.Releasable
All Known Implementing Classes:
BooleanScriptFieldData.BooleanScriptLeafFieldData, DateScriptFieldData.DateScriptLeafFieldData, DoubleScriptFieldData.DoubleScriptLeafFieldData, LeafDoubleFieldData, LeafLongFieldData, LongScriptFieldData.LongScriptLeafFieldData, SortedNumericIndexFieldData.NanoSecondFieldData

public interface LeafNumericFieldData extends LeafFieldData
Specialization of LeafFieldData for numeric data.
  • Field Summary

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a floating-point view of the values in this segment.
    org.apache.lucene.index.SortedNumericDocValues
    Get an integer view of the values of this segment.

    Methods inherited from interface org.apache.lucene.util.Accountable

    getChildResources, ramBytesUsed

    Methods inherited from interface org.elasticsearch.index.fielddata.LeafFieldData

    getBytesValues, getFormattedValues, getScriptField

    Methods inherited from interface org.elasticsearch.core.Releasable

    close
  • Method Details

    • getLongValues

      org.apache.lucene.index.SortedNumericDocValues getLongValues()
      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.
    • getDoubleValues

      SortedNumericDoubleValues getDoubleValues()
      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.