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
Fields Modifier and Type Field Description (package private) IndexInput
data
(package private) Lucene70DocValuesProducer.SortedSetEntry
entry
(package private) TermsEnum
termsEnum
-
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 long
getValueCount()
Returns the number of unique values.BytesRef
lookupOrd(long ord)
Retrieves the value for the specified ordinal.long
lookupTerm(BytesRef key)
Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.TermsEnum
termsEnum()
Returns aTermsEnum
over the values.-
Methods inherited from class org.apache.lucene.index.SortedSetDocValues
docValueCount, 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:SortedSetDocValues
Returns the number of unique values.- Specified by:
getValueCount
in 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:SortedSetDocValues
Retrieves the value for the specified ordinal. The returnedBytesRef
may be re-used across calls to lookupOrd so make sure tocopy it
if you want to keep it around.- Specified by:
lookupOrd
in 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:SortedSetDocValues
Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.- Overrides:
lookupTerm
in classSortedSetDocValues
- Parameters:
key
- Key to look up- Throws:
java.io.IOException
-
termsEnum
public TermsEnum termsEnum() throws java.io.IOException
Description copied from class:SortedSetDocValues
Returns aTermsEnum
over the values. The enum supportsTermsEnum.ord()
andTermsEnum.seekExact(long)
.- Overrides:
termsEnum
in classSortedSetDocValues
- Throws:
java.io.IOException
-
-