private abstract static class Lucene80DocValuesProducer.BaseSortedDocValues extends SortedDocValues
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
data |
(package private) Lucene80DocValuesProducer.SortedEntry |
entry |
(package private) TermsEnum |
termsEnum |
NO_MORE_DOCS
Constructor and Description |
---|
BaseSortedDocValues(Lucene80DocValuesProducer.SortedEntry entry,
IndexInput data) |
Modifier and Type | Method and Description |
---|---|
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 . |
TermsEnum |
termsEnum()
Returns a
TermsEnum over the values. |
binaryValue, intersect, ordValue
advanceExact
advance, all, cost, docID, empty, nextDoc, range, slowAdvance
final Lucene80DocValuesProducer.SortedEntry entry
final IndexInput data
final TermsEnum termsEnum
BaseSortedDocValues(Lucene80DocValuesProducer.SortedEntry entry, IndexInput data) throws java.io.IOException
java.io.IOException
public int getValueCount()
SortedDocValues
getValueCount
in class SortedDocValues
public BytesRef lookupOrd(int ord) throws java.io.IOException
SortedDocValues
BytesRef
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 SortedDocValues
ord
- ordinal to lookup (must be >= 0 and < SortedDocValues.getValueCount()
)java.io.IOException
SortedDocValues.ordValue()
public int lookupTerm(BytesRef key) throws java.io.IOException
SortedDocValues
key
exists, returns its ordinal, else
returns -insertionPoint-1
, like Arrays.binarySearch
.lookupTerm
in class SortedDocValues
key
- Key to look upjava.io.IOException
public TermsEnum termsEnum() throws java.io.IOException
SortedDocValues
TermsEnum
over the values.
The enum supports TermsEnum.ord()
and TermsEnum.seekExact(long)
.termsEnum
in class SortedDocValues
java.io.IOException