Class SortedNumericDocValues

Direct Known Subclasses:
BackCompatSortedNumericDocValues, FilterSortedNumericDocValues, SingletonSortedNumericDocValues, SortedNumericDocValuesWriter.BufferedSortedNumericDocValues, SortedNumericDocValuesWriter.SortingSortedNumericDocValues

public abstract class SortedNumericDocValues extends DocValuesIterator
A list of per-document numeric values, sorted according to Long.compare(long, long).
  • Constructor Details

    • SortedNumericDocValues

      protected SortedNumericDocValues()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • nextValue

      public abstract long nextValue() throws IOException
      Iterates to the next value in the current document. Do not call this more than docValueCount() times for the document.
      Throws:
      IOException
    • docValueCount

      public abstract int docValueCount()
      Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method after DocValuesIterator.advanceExact(int) returned false.