Class SortedDocValues

  • Direct Known Subclasses:
    LegacySortedDocValuesWrapper, MultiDocValues.MultiSortedDocValues

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