private abstract static class Lucene70DocValuesProducer.BaseSortedSetDocValues extends SortedSetDocValues
| Modifier and Type | Field and Description |
|---|---|
(package private) IndexInput |
data |
(package private) Lucene70DocValuesProducer.SortedSetEntry |
entry |
(package private) TermsEnum |
termsEnum |
NO_MORE_ORDSNO_MORE_DOCS| Constructor and Description |
|---|
BaseSortedSetDocValues(Lucene70DocValuesProducer.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, nextOrdadvanceExactadvance, all, cost, docID, empty, nextDoc, range, slowAdvancefinal Lucene70DocValuesProducer.SortedSetEntry entry
final IndexInput data
final TermsEnum termsEnum
BaseSortedSetDocValues(Lucene70DocValuesProducer.SortedSetEntry entry, IndexInput data) throws java.io.IOException
java.io.IOExceptionpublic long getValueCount()
SortedSetDocValuesgetValueCount in class SortedSetDocValuespublic BytesRef lookupOrd(long ord) throws java.io.IOException
SortedSetDocValuesBytesRef may be re-used across calls to lookupOrd so make sure to
copy it if you want to keep it
around.lookupOrd in class SortedSetDocValuesord - ordinal to lookupjava.io.IOExceptionSortedSetDocValues.nextOrd()public long lookupTerm(BytesRef key) throws java.io.IOException
SortedSetDocValueskey exists, returns its ordinal, else
returns -insertionPoint-1, like Arrays.binarySearch.lookupTerm in class SortedSetDocValueskey - Key to look upjava.io.IOExceptionpublic TermsEnum termsEnum() throws java.io.IOException
SortedSetDocValuesTermsEnum over the values.
The enum supports TermsEnum.ord() and TermsEnum.seekExact(long).termsEnum in class SortedSetDocValuesjava.io.IOException