static class SortedSetSelector.MaxValue extends SortedDocValues
| Modifier and Type | Field and Description |
|---|---|
(package private) RandomAccessOrds |
in |
| Constructor and Description |
|---|
MaxValue(RandomAccessOrds in) |
| 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.
|
int |
lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1, like Arrays.binarySearch. |
get, termsEnumfinal RandomAccessOrds in
MaxValue(RandomAccessOrds in)
public 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 SortedDocValuespublic int lookupTerm(BytesRef key)
SortedDocValueskey exists, returns its ordinal, else
returns -insertionPoint-1, like Arrays.binarySearch.lookupTerm in class SortedDocValueskey - Key to look up