Package org.apache.lucene.index
Class MultiDocValues.MultiSortedDocValues
java.lang.Object
org.apache.lucene.index.BinaryDocValues
org.apache.lucene.index.SortedDocValues
org.apache.lucene.index.MultiDocValues.MultiSortedDocValues
- Enclosing class:
- MultiDocValues
Implements SortedDocValues over n subs, using an OrdinalMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[]
docbase for each leaf: parallel withvalues
ordinal map mapping ords fromvalues
to global ord spacefinal SortedDocValues[]
leaf valuesFields inherited from class org.apache.lucene.index.SortedDocValues
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrd
(int docID) Returns the ordinal for the specified docID.int
Returns the number of unique values.void
Retrieves the value for the specified ordinal.Methods inherited from class org.apache.lucene.index.SortedDocValues
get, lookupTerm, termsEnum
-
Field Details
-
docStarts
public final int[] docStartsdocbase for each leaf: parallel withvalues
-
values
leaf values -
mapping
ordinal map mapping ords fromvalues
to global ord space
-
-
Method Details
-
getOrd
public int getOrd(int docID) Description copied from class:SortedDocValues
Returns the ordinal for the specified docID.- Specified by:
getOrd
in classSortedDocValues
- 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.
-
lookupOrd
Description copied from class:SortedDocValues
Retrieves the value for the specified ordinal.- Specified by:
lookupOrd
in classSortedDocValues
- Parameters:
ord
- ordinal to lookup (must be >= 0 and <SortedDocValues.getValueCount()
)result
- will be populated with the ordinal's value- See Also:
-
getValueCount
public int getValueCount()Description copied from class:SortedDocValues
Returns the number of unique values.- Specified by:
getValueCount
in classSortedDocValues
- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-