public static class MultiDocValues.MultiSortedDocValues extends SortedDocValues
| Modifier and Type | Field and Description |
|---|---|
int[] |
docStarts
docbase for each leaf: parallel with
values |
MultiDocValues.OrdinalMap |
mapping
ordinal map mapping ords from
values to global ord space |
SortedDocValues[] |
values
leaf values
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrd(int docID)
Returns the ordinal for the specified docID.
|
int |
getValueCount()
Returns the number of unique values.
|
BytesRef |
lookupOrd(int ord)
Retrieves the value for the specified ordinal.
|
get, lookupTerm, termsEnumpublic final int[] docStarts
valuespublic final SortedDocValues[] values
public final MultiDocValues.OrdinalMap mapping
values to global ord spacepublic int getOrd(int docID)
SortedDocValuesgetOrd in class SortedDocValuesdocID - document ID to lookuppublic BytesRef lookupOrd(int ord)
SortedDocValuesBytesRef may be re-used across calls to SortedDocValues.lookupOrd(int)
so make sure to copy it if you want
to keep it around.lookupOrd in class SortedDocValuesord - ordinal to lookup (must be >= 0 and < SortedDocValues.getValueCount())SortedDocValues.getOrd(int)public int getValueCount()
SortedDocValuesgetValueCount in class SortedDocValuesCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.