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 TermsEnumFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of unique values.lookupOrd(int ord) Retrieves the value for the specified ordinal.intlookupTerm(BytesRef key) Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.Returns aTermsEnumover the values.Methods inherited from class org.apache.lucene.index.SortedDocValues
intersect, ordValueMethods inherited from class org.apache.lucene.index.DocValuesIterator
advanceExactMethods 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:SortedDocValuesReturns the number of unique values.- Specified by:
getValueCountin classSortedDocValues- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-
lookupOrd
Description copied from class:SortedDocValuesRetrieves the value for the specified ordinal. The returnedBytesRefmay be re-used across calls toSortedDocValues.lookupOrd(int)so make sure tocopy itif you want to keep it around.- Specified by:
lookupOrdin classSortedDocValues- Parameters:
ord- ordinal to lookup (must be >= 0 and <SortedDocValues.getValueCount())- Throws:
IOException- See Also:
-
lookupTerm
Description copied from class:SortedDocValuesIfkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.- Overrides:
lookupTermin classSortedDocValues- Parameters:
key- Key to look up- Throws:
IOException
-
termsEnum
Description copied from class:SortedDocValuesReturns aTermsEnumover the values. The enum supportsTermsEnum.ord()andTermsEnum.seekExact(long).- Overrides:
termsEnumin classSortedDocValues- Throws:
IOException
-