Package org.apache.lucene.index
Class MultiDocValues.MultiSortedSetDocValues
java.lang.Object
org.apache.lucene.index.SortedSetDocValues
org.apache.lucene.index.MultiDocValues.MultiSortedSetDocValues
- Enclosing class:
- MultiDocValues
Implements MultiSortedSetDocValues 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 SortedSetDocValues[]
leaf valuesFields inherited from class org.apache.lucene.index.SortedSetDocValues
EMPTY, NO_MORE_ORDS
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the number of unique values.void
Retrieves the value for the specified ordinal.long
nextOrd()
Returns the next ordinal for the current document (previously set bySortedSetDocValues.setDocument(int)
.void
setDocument
(int docID) Sets iteration to the specified docIDMethods inherited from class org.apache.lucene.index.SortedSetDocValues
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
-
nextOrd
public long nextOrd()Description copied from class:SortedSetDocValues
Returns the next ordinal for the current document (previously set bySortedSetDocValues.setDocument(int)
.- Specified by:
nextOrd
in classSortedSetDocValues
- Returns:
- next ordinal for the document, or
SortedSetDocValues.NO_MORE_ORDS
. ordinals are dense, start at 0, then increment by 1 for the next value in sorted order.
-
setDocument
public void setDocument(int docID) Description copied from class:SortedSetDocValues
Sets iteration to the specified docID- Specified by:
setDocument
in classSortedSetDocValues
- Parameters:
docID
- document ID
-
lookupOrd
Description copied from class:SortedSetDocValues
Retrieves the value for the specified ordinal.- Specified by:
lookupOrd
in classSortedSetDocValues
- Parameters:
ord
- ordinal to lookupresult
- will be populated with the ordinal's value- See Also:
-
getValueCount
public long getValueCount()Description copied from class:SortedSetDocValues
Returns the number of unique values.- Specified by:
getValueCount
in classSortedSetDocValues
- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-