private abstract static class Lucene70DocValuesProducer.BaseSortedDocValues extends SortedDocValues
| Modifier and Type | Field and Description |
|---|---|
(package private) IndexInput |
data |
(package private) Lucene70DocValuesProducer.SortedEntry |
entry |
(package private) TermsEnum |
termsEnum |
NO_MORE_DOCS| Constructor and Description |
|---|
BaseSortedDocValues(Lucene70DocValuesProducer.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, ordValueadvanceExactadvance, all, cost, docID, empty, nextDoc, range, slowAdvancefinal Lucene70DocValuesProducer.SortedEntry entry
final IndexInput data
final TermsEnum termsEnum
BaseSortedDocValues(Lucene70DocValuesProducer.SortedEntry entry, IndexInput data) throws java.io.IOException
java.io.IOExceptionpublic int getValueCount()
SortedDocValuesgetValueCount in class SortedDocValuespublic BytesRef lookupOrd(int ord) throws java.io.IOException
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())java.io.IOExceptionSortedDocValues.ordValue()public int lookupTerm(BytesRef key) throws java.io.IOException
SortedDocValueskey exists, returns its ordinal, else
returns -insertionPoint-1, like Arrays.binarySearch.lookupTerm in class SortedDocValueskey - Key to look upjava.io.IOExceptionpublic TermsEnum termsEnum() throws java.io.IOException
SortedDocValuesTermsEnum over the values.
The enum supports TermsEnum.ord() and TermsEnum.seekExact(long).termsEnum in class SortedDocValuesjava.io.IOException