private abstract static class Lucene80DocValuesProducer.BaseSortedSetDocValues extends SortedSetDocValues
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
data |
(package private) Lucene80DocValuesProducer.SortedSetEntry |
entry |
(package private) TermsEnum |
termsEnum |
NO_MORE_ORDS
NO_MORE_DOCS
Constructor and Description |
---|
BaseSortedSetDocValues(Lucene80DocValuesProducer.SortedSetEntry entry,
IndexInput data) |
Modifier and Type | Method and Description |
---|---|
long |
getValueCount()
Returns the number of unique values.
|
BytesRef |
lookupOrd(long ord)
Retrieves the value for the specified ordinal.
|
long |
lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
TermsEnum |
termsEnum()
Returns a
TermsEnum over the values. |
intersect, nextOrd
advanceExact
advance, all, cost, docID, empty, nextDoc, range, slowAdvance
final Lucene80DocValuesProducer.SortedSetEntry entry
final IndexInput data
final TermsEnum termsEnum
BaseSortedSetDocValues(Lucene80DocValuesProducer.SortedSetEntry entry, IndexInput data) throws java.io.IOException
java.io.IOException
public long getValueCount()
SortedSetDocValues
getValueCount
in class SortedSetDocValues
public BytesRef lookupOrd(long ord) throws java.io.IOException
SortedSetDocValues
BytesRef
may be re-used across calls to lookupOrd so make sure to
copy it
if you want to keep it
around.lookupOrd
in class SortedSetDocValues
ord
- ordinal to lookupjava.io.IOException
SortedSetDocValues.nextOrd()
public long lookupTerm(BytesRef key) throws java.io.IOException
SortedSetDocValues
key
exists, returns its ordinal, else
returns -insertionPoint-1
, like Arrays.binarySearch
.lookupTerm
in class SortedSetDocValues
key
- Key to look upjava.io.IOException
public TermsEnum termsEnum() throws java.io.IOException
SortedSetDocValues
TermsEnum
over the values.
The enum supports TermsEnum.ord()
and TermsEnum.seekExact(long)
.termsEnum
in class SortedSetDocValues
java.io.IOException