Module org.apache.lucene.core
Class Lucene90DocValuesProducer.BaseSortedDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.DocValuesIterator
org.apache.lucene.index.SortedDocValues
org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer.BaseSortedDocValues
- Enclosing class:
- Lucene90DocValuesProducer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Lucene90DocValuesProducer.SortedEntry
(package private) final TermsEnum
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of unique values.lookupOrd
(int ord) Retrieves the value for the specified ordinal.int
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.SortedDocValues
intersect, ordValue
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
-
termsEnum
-
-
Constructor Details
-
BaseSortedDocValues
BaseSortedDocValues(Lucene90DocValuesProducer.SortedEntry entry) throws IOException - Throws:
IOException
-
-
Method Details
-
getValueCount
public int getValueCount()Description copied from class:SortedDocValues
Returns the number of unique values.- Specified by:
getValueCount
in classSortedDocValues
- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-
lookupOrd
Description copied from class:SortedDocValues
Retrieves the value for the specified ordinal. The returnedBytesRef
may be re-used across calls toSortedDocValues.lookupOrd(int)
so make sure tocopy it
if you want to keep it around.- Specified by:
lookupOrd
in classSortedDocValues
- Parameters:
ord
- ordinal to lookup (must be >= 0 and <SortedDocValues.getValueCount()
)- Throws:
IOException
- See Also:
-
lookupTerm
Description copied from class:SortedDocValues
Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.- Overrides:
lookupTerm
in classSortedDocValues
- Parameters:
key
- Key to look up- Throws:
IOException
-
termsEnum
Description copied from class:SortedDocValues
Returns aTermsEnum
over the values. The enum supportsTermsEnum.ord()
andTermsEnum.seekExact(long)
.- Overrides:
termsEnum
in classSortedDocValues
- Throws:
IOException
-