Class SortedDocValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedDocValues
Direct Known Subclasses:
FilterSortedDocValues, MultiDocValues.MultiSortedDocValues

public abstract class SortedDocValues extends DocIdSetIterator
A per-document byte[] with presorted values. This is fundamentally an iterator over the int ord values per document, with random access APIs to resolve an int ord to BytesRef.

Per-Document values in a SortedDocValues are deduplicated, dereferenced, and sorted into a dictionary of unique values. A pointer to the dictionary value (ordinal) can be retrieved for each document. Ordinals are dense and in increasing sorted order.

  • Constructor Details

    • SortedDocValues

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