Class Lucene80DocValuesProducer.BaseSortedDocValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.DocValuesIterator
-
- org.apache.lucene.index.BinaryDocValues
-
- org.apache.lucene.index.SortedDocValues
-
- org.apache.lucene.codecs.lucene80.Lucene80DocValuesProducer.BaseSortedDocValues
-
- Enclosing class:
- Lucene80DocValuesProducer
private abstract static class Lucene80DocValuesProducer.BaseSortedDocValues extends SortedDocValues
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexInputdata(package private) Lucene80DocValuesProducer.SortedEntryentry(package private) TermsEnumtermsEnum-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Constructor Description BaseSortedDocValues(Lucene80DocValuesProducer.SortedEntry entry, IndexInput data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValueCount()Returns the number of unique values.BytesReflookupOrd(int ord)Retrieves the value for the specified ordinal.intlookupTerm(BytesRef key)Ifkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.TermsEnumtermsEnum()Returns aTermsEnumover the values.-
Methods inherited from class org.apache.lucene.index.SortedDocValues
binaryValue, 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 Detail
-
entry
final Lucene80DocValuesProducer.SortedEntry entry
-
data
final IndexInput data
-
termsEnum
final TermsEnum termsEnum
-
-
Constructor Detail
-
BaseSortedDocValues
BaseSortedDocValues(Lucene80DocValuesProducer.SortedEntry entry, IndexInput data) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
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
public BytesRef lookupOrd(int ord) throws java.io.IOException
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:
java.io.IOException- See Also:
SortedDocValues.ordValue()
-
lookupTerm
public int lookupTerm(BytesRef key) throws java.io.IOException
Description copied from class:SortedDocValuesIfkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.- Overrides:
lookupTermin classSortedDocValues- Parameters:
key- Key to look up- Throws:
java.io.IOException
-
termsEnum
public TermsEnum termsEnum() throws java.io.IOException
Description copied from class:SortedDocValuesReturns aTermsEnumover the values. The enum supportsTermsEnum.ord()andTermsEnum.seekExact(long).- Overrides:
termsEnumin classSortedDocValues- Throws:
java.io.IOException
-
-