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
 
public static class MultiDocValues.MultiSortedDocValues extends SortedDocValues
Implements SortedDocValues 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 spaceSortedDocValues[]valuesleaf values- 
Fields inherited from class org.apache.lucene.index.SortedDocValues
EMPTY 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrd(int docID)Returns the ordinal for the specified docID.intgetValueCount()Returns the number of unique values.voidlookupOrd(int ord, BytesRef result)Retrieves the value for the specified ordinal.- 
Methods inherited from class org.apache.lucene.index.SortedDocValues
get, lookupTerm, termsEnum 
 - 
 
 - 
 
- 
- 
Field Detail
- 
docStarts
public final int[] docStarts
docbase for each leaf: parallel withvalues 
- 
values
public final SortedDocValues[] values
leaf values 
- 
mapping
public final MultiDocValues.OrdinalMap mapping
ordinal map mapping ords fromvaluesto global ord space 
 - 
 
- 
Method Detail
- 
getOrd
public int getOrd(int docID)
Description copied from class:SortedDocValuesReturns the ordinal for the specified docID.- Specified by:
 getOrdin 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
public void lookupOrd(int ord, BytesRef result)Description copied from class:SortedDocValuesRetrieves the value for the specified ordinal.- Specified by:
 lookupOrdin classSortedDocValues- Parameters:
 ord- ordinal to lookup (must be >= 0 and <SortedDocValues.getValueCount())result- will be populated with the ordinal's value- See Also:
 SortedDocValues.getOrd(int)
 
- 
getValueCount
public int getValueCount()
Description copied from class:SortedDocValuesReturns the number of unique values.- Specified by:
 getValueCountin classSortedDocValues- Returns:
 - number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
 
 
 - 
 
 -