Class Lucene80DocValuesProducer.BaseSortedSetDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.DocValuesIterator
org.apache.lucene.index.SortedSetDocValues
org.apache.lucene.backward_codecs.lucene80.Lucene80DocValuesProducer.BaseSortedSetDocValues
- Enclosing class:
Lucene80DocValuesProducer
private abstract static class Lucene80DocValuesProducer.BaseSortedSetDocValues
extends SortedSetDocValues
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final IndexInput
(package private) final Lucene80DocValuesProducer.SortedSetEntry
(package private) final TermsEnum
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the number of unique values.lookupOrd
(long ord) Retrieves the value for the specified ordinal.long
lookupTerm
(BytesRef key) Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.Returns aTermsEnum
over the values.Methods inherited from class org.apache.lucene.index.SortedSetDocValues
docValueCount, intersect, nextOrd
Methods inherited from class org.apache.lucene.index.DocValuesIterator
advanceExact
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
advance, all, cost, docID, empty, nextDoc, range, slowAdvance
-
Field Details
-
entry
-
data
-
termsEnum
-
-
Constructor Details
-
BaseSortedSetDocValues
BaseSortedSetDocValues(Lucene80DocValuesProducer.SortedSetEntry entry, IndexInput data) throws IOException - Throws:
IOException
-
-
Method Details
-
getValueCount
public long getValueCount()Description copied from class:SortedSetDocValues
Returns the number of unique values.- Specified by:
getValueCount
in classSortedSetDocValues
- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-
lookupOrd
Description copied from class:SortedSetDocValues
Retrieves the value for the specified ordinal. The returnedBytesRef
may be re-used across calls to lookupOrd so make sure tocopy it
if you want to keep it around.- Specified by:
lookupOrd
in classSortedSetDocValues
- Parameters:
ord
- ordinal to lookup- Throws:
IOException
- See Also:
-
lookupTerm
Description copied from class:SortedSetDocValues
Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.- Overrides:
lookupTerm
in classSortedSetDocValues
- Parameters:
key
- Key to look up- Throws:
IOException
-
termsEnum
Description copied from class:SortedSetDocValues
Returns aTermsEnum
over the values. The enum supportsTermsEnum.ord()
andTermsEnum.seekExact(long)
.- Overrides:
termsEnum
in classSortedSetDocValues
- Throws:
IOException
-