Class MultiDocValues.MultiSortedDocValues

  • Enclosing class:
    MultiDocValues

    public static class MultiDocValues.MultiSortedDocValues
    extends SortedDocValues
    Implements SortedDocValues over n subs, using an OrdinalMap
    • Field Detail

      • docStarts

        public final int[] docStarts
        docbase for each leaf: parallel with values
    • Method Detail

      • getOrd

        public int getOrd​(int docID)
        Description copied from class: SortedDocValues
        Returns the ordinal for the specified docID.
        Specified by:
        getOrd in class SortedDocValues
        Parameters:
        docID - document ID to lookup
        Returns:
        ordinal for the document: this is dense, starts at 0, then increments by 1 for the next value in sorted order. Note that missing values are indicated by -1.
      • getValueCount

        public int getValueCount()
        Description copied from class: SortedDocValues
        Returns the number of unique values.
        Specified by:
        getValueCount in class SortedDocValues
        Returns:
        number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.