Class SortingNumericLongValues

java.lang.Object
org.elasticsearch.index.fielddata.SortedNumericLongValues
org.elasticsearch.index.fielddata.SortingNumericLongValues
Direct Known Subclasses:
CellIdSource.CellMultiValues, ScriptLongValues

public abstract class SortingNumericLongValues extends SortedNumericLongValues
Base class for building SortedNumericLongValues instances based on unsorted content.
  • Field Details

    • values

      protected long[] values
    • valuesCursor

      protected int valuesCursor
  • Constructor Details

    • SortingNumericLongValues

      protected SortingNumericLongValues()
    • SortingNumericLongValues

      protected SortingNumericLongValues(LongConsumer circuitBreakerConsumer)
  • Method Details

    • resize

      protected final void resize(int newSize)
      Set the docValueCount() and ensure that the values array can store at least that many entries.
    • growExact

      protected void growExact(int newValuesLength)
      Grow the array in a method so we can override it during testing
    • getArrayLength

      protected int getArrayLength()
      Get the size of the internal array using a method so we can override it during testing
    • sort

      protected final void sort()
      Sort values that are stored between offsets 0 and count of values.
    • docValueCount

      public final int docValueCount()
      Description copied from class: SortedNumericLongValues
      Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method after SortedNumericLongValues.advanceExact(int) returned false.
      Specified by:
      docValueCount in class SortedNumericLongValues
    • nextValue

      public final long nextValue()
      Description copied from class: SortedNumericLongValues
      Iterates to the next value in the current document. Do not call this more than SortedNumericLongValues.docValueCount() times for the document.
      Specified by:
      nextValue in class SortedNumericLongValues