Class Lucene70DocValuesProducer.BaseSortedSetDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.DocValuesIterator
org.apache.lucene.index.SortedSetDocValues
org.apache.lucene.backward_codecs.lucene70.Lucene70DocValuesProducer.BaseSortedSetDocValues
- Enclosing class:
Lucene70DocValuesProducer
private abstract static class Lucene70DocValuesProducer.BaseSortedSetDocValues
extends SortedSetDocValues
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final IndexInput(package private) final Lucene70DocValuesProducer.SortedSetEntry(package private) final TermsEnumFields inherited from class org.apache.lucene.index.SortedSetDocValues
NO_MORE_ORDSFields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of unique values.lookupOrd(long ord) Retrieves the value for the specified ordinal.longlookupTerm(BytesRef key) Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.Returns aTermsEnumover the values.Methods inherited from class org.apache.lucene.index.SortedSetDocValues
docValueCount, intersect, nextOrdMethods 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
-
data
-
termsEnum
-
-
Constructor Details
-
BaseSortedSetDocValues
BaseSortedSetDocValues(Lucene70DocValuesProducer.SortedSetEntry entry, IndexInput data) throws IOException - Throws:
IOException
-
-
Method Details
-
getValueCount
public long getValueCount()Description copied from class:SortedSetDocValuesReturns the number of unique values.- Specified by:
getValueCountin classSortedSetDocValues- Returns:
- number of unique values in this SortedDocValues. This is also equivalent to one plus the maximum ordinal.
-
lookupOrd
Description copied from class:SortedSetDocValuesRetrieves the value for the specified ordinal. The returnedBytesRefmay be re-used across calls to lookupOrd so make sure tocopy itif you want to keep it around.- Specified by:
lookupOrdin classSortedSetDocValues- Parameters:
ord- ordinal to lookup- Throws:
IOException- See Also:
-
lookupTerm
Description copied from class:SortedSetDocValuesIfkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.- Overrides:
lookupTermin classSortedSetDocValues- Parameters:
key- Key to look up- Throws:
IOException
-
termsEnum
Description copied from class:SortedSetDocValuesReturns aTermsEnumover the values. The enum supportsTermsEnum.ord()andTermsEnum.seekExact(long).- Overrides:
termsEnumin classSortedSetDocValues- Throws:
IOException
-