Class SortedDocValues

Direct Known Subclasses:
FilterSortedDocValues, Lucene80DocValuesProducer.BaseSortedDocValues, Lucene90DocValuesProducer.BaseSortedDocValues, MultiDocValues.MultiSortedDocValues, SortedDocValuesWriter.BufferedSortedDocValues, SortedDocValuesWriter.SortingSortedDocValues, SortedSetSelector.MaxValue, SortedSetSelector.MiddleMaxValue, SortedSetSelector.MiddleMinValue, SortedSetSelector.MinValue, ToParentDocValues.SortedDVs

public abstract class SortedDocValues extends DocValuesIterator
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.