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
 
public static class MultiDocValues.MultiSortedSetDocValues extends SortedSetDocValues
Implements MultiSortedSetDocValues over n subs, using an OrdinalMap 
- 
- 
Field Summary
Fields Modifier and Type Field Description int[]docStartsdocbase for each leaf: parallel withvaluesMultiDocValues.OrdinalMapmappingordinal map mapping ords fromvaluesto global ord spaceSortedSetDocValues[]valuesleaf values- 
Fields inherited from class org.apache.lucene.index.SortedSetDocValues
EMPTY, NO_MORE_ORDS 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetValueCount()Returns the number of unique values.voidlookupOrd(long ord, BytesRef result)Retrieves the value for the specified ordinal.longnextOrd()Returns the next ordinal for the current document (previously set bySortedSetDocValues.setDocument(int).voidsetDocument(int docID)Sets iteration to the specified docID- 
Methods inherited from class org.apache.lucene.index.SortedSetDocValues
lookupTerm, termsEnum 
 - 
 
 - 
 
- 
- 
Field Detail
- 
docStarts
public final int[] docStarts
docbase for each leaf: parallel withvalues 
- 
values
public final SortedSetDocValues[] values
leaf values 
- 
mapping
public final MultiDocValues.OrdinalMap mapping
ordinal map mapping ords fromvaluesto global ord space 
 - 
 
- 
Method Detail
- 
nextOrd
public long nextOrd()
Description copied from class:SortedSetDocValuesReturns the next ordinal for the current document (previously set bySortedSetDocValues.setDocument(int).- Specified by:
 nextOrdin 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:SortedSetDocValuesSets iteration to the specified docID- Specified by:
 setDocumentin classSortedSetDocValues- Parameters:
 docID- document ID
 
- 
lookupOrd
public void lookupOrd(long ord, BytesRef result)Description copied from class:SortedSetDocValuesRetrieves the value for the specified ordinal.- Specified by:
 lookupOrdin classSortedSetDocValues- Parameters:
 ord- ordinal to lookupresult- will be populated with the ordinal's value- See Also:
 SortedSetDocValues.nextOrd()
 
- 
getValueCount
public long getValueCount()
Description copied from class:SortedSetDocValuesReturns the number of unique values.- Specified by:
 getValueCountin classSortedSetDocValues- Returns:
 - number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
 
 
 - 
 
 -