Class Lucene70DocValuesProducer.BaseSortedSetDocValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.DocValuesIterator
-
- org.apache.lucene.index.SortedSetDocValues
-
- org.apache.lucene.codecs.lucene70.Lucene70DocValuesProducer.BaseSortedSetDocValues
-
- Enclosing class:
- Lucene70DocValuesProducer
private abstract static class Lucene70DocValuesProducer.BaseSortedSetDocValues extends SortedSetDocValues
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexInputdata(package private) Lucene70DocValuesProducer.SortedSetEntryentry(package private) TermsEnumtermsEnum-
Fields inherited from class org.apache.lucene.index.SortedSetDocValues
NO_MORE_ORDS
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Constructor Description BaseSortedSetDocValues(Lucene70DocValuesProducer.SortedSetEntry entry, IndexInput data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetValueCount()Returns the number of unique values.BytesReflookupOrd(long ord)Retrieves the value for the specified ordinal.longlookupTerm(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.SortedSetDocValues
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 Detail
-
entry
final Lucene70DocValuesProducer.SortedSetEntry entry
-
data
final IndexInput data
-
termsEnum
final TermsEnum termsEnum
-
-
Constructor Detail
-
BaseSortedSetDocValues
BaseSortedSetDocValues(Lucene70DocValuesProducer.SortedSetEntry entry, IndexInput data) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
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
public BytesRef lookupOrd(long ord) throws java.io.IOException
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:
java.io.IOException- See Also:
SortedSetDocValues.nextOrd()
-
lookupTerm
public long lookupTerm(BytesRef key) throws java.io.IOException
Description copied from class:SortedSetDocValuesIfkeyexists, returns its ordinal, else returns-insertionPoint-1, likeArrays.binarySearch.- Overrides:
lookupTermin classSortedSetDocValues- Parameters:
key- Key to look up- Throws:
java.io.IOException
-
termsEnum
public TermsEnum termsEnum() throws java.io.IOException
Description copied from class:SortedSetDocValuesReturns aTermsEnumover the values. The enum supportsTermsEnum.ord()andTermsEnum.seekExact(long).- Overrides:
termsEnumin classSortedSetDocValues- Throws:
java.io.IOException
-
-