Class LeafDoubleFieldData

java.lang.Object
org.elasticsearch.index.fielddata.plain.LeafDoubleFieldData
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.apache.lucene.util.Accountable, Releasable, LeafFieldData, LeafNumericFieldData

public abstract class LeafDoubleFieldData
extends java.lang.Object
implements LeafNumericFieldData
Specialization of LeafNumericFieldData for floating-point numerics.
  • Field Summary

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

    NULL_ACCOUNTABLE
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected LeafDoubleFieldData​(long ramBytesUsed)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    static LeafNumericFieldData empty​(int maxDoc)  
    SortedBinaryDocValues getBytesValues()
    Return a String representation of the values.
    FormattedDocValues getFormattedValues​(DocValueFormat format)
    Return a formatted representation of the values
    org.apache.lucene.index.SortedNumericDocValues getLongValues()
    Get an integer view of the values of this segment.
    ScriptDocValues<java.lang.Double> getScriptValues()
    Returns field values for use in scripting.
    long ramBytesUsed()  

    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

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

    getDoubleValues
  • Constructor Details

    • LeafDoubleFieldData

      protected LeafDoubleFieldData​(long ramBytesUsed)
  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • getScriptValues

      public final ScriptDocValues<java.lang.Double> getScriptValues()
      Description copied from interface: LeafFieldData
      Returns field values for use in scripting.
      Specified by:
      getScriptValues in interface LeafFieldData
    • getBytesValues

      public final SortedBinaryDocValues getBytesValues()
      Description copied from interface: LeafFieldData
      Return a String representation of the values.
      Specified by:
      getBytesValues in interface LeafFieldData
    • getLongValues

      public final 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.
      Specified by:
      getLongValues in interface LeafNumericFieldData
    • empty

      public static LeafNumericFieldData empty​(int maxDoc)
    • getFormattedValues

      public FormattedDocValues getFormattedValues​(DocValueFormat format)
      Description copied from interface: LeafFieldData
      Return a formatted representation of the values
      Specified by:
      getFormattedValues in interface LeafFieldData
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in interface Releasable