Class SortingNumericDocValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedNumericDocValues
org.elasticsearch.index.fielddata.SortingNumericDocValues
Direct Known Subclasses:
AbstractSortingNumericDocValues

public abstract class SortingNumericDocValues extends org.apache.lucene.index.SortedNumericDocValues
Base class for building SortedNumericDocValues instances based on unsorted content.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected long[]
     
    protected int
     

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    SortingNumericDocValues(LongConsumer circuitBreakerConsumer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    advanceExact(int arg0)
     
    final int
     
    protected int
    Get the size of the internal array using a method so we can override it during testing
    protected void
    growExact(int newValuesLength)
    Grow the array in a method so we can override it during testing
    final long
     
    protected final void
    resize(int newSize)
    Set the docValueCount() and ensure that the values array can store at least that many entries.
    protected final void
    Sort values that are stored between offsets 0 and count of values.

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    advance, all, cost, docID, empty, nextDoc, range, slowAdvance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • values

      protected long[] values
    • valuesCursor

      protected int valuesCursor
  • Constructor Details

    • SortingNumericDocValues

      protected SortingNumericDocValues()
    • SortingNumericDocValues

      protected SortingNumericDocValues(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()
      Specified by:
      docValueCount in class org.apache.lucene.index.SortedNumericDocValues
    • nextValue

      public final long nextValue()
      Specified by:
      nextValue in class org.apache.lucene.index.SortedNumericDocValues
    • advanceExact

      public abstract boolean advanceExact(int arg0) throws IOException
      Throws:
      IOException