Class Lucene70DocValuesProducer.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.lucene70.Lucene70DocValuesProducer.BaseSortedDocValues
-
- Enclosing class:
- Lucene70DocValuesProducer
private abstract static class Lucene70DocValuesProducer.BaseSortedDocValues extends SortedDocValues
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexInput
data
(package private) Lucene70DocValuesProducer.SortedEntry
entry
(package private) TermsEnum
termsEnum
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Constructor Description BaseSortedDocValues(Lucene70DocValuesProducer.SortedEntry entry, IndexInput data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValueCount()
Returns the number of unique values.BytesRef
lookupOrd(int ord)
Retrieves the value for the specified ordinal.int
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.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 Lucene70DocValuesProducer.SortedEntry entry
-
data
final IndexInput data
-
termsEnum
final TermsEnum termsEnum
-
-
Constructor Detail
-
BaseSortedDocValues
BaseSortedDocValues(Lucene70DocValuesProducer.SortedEntry entry, IndexInput data) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getValueCount
public int getValueCount()
Description copied from class:SortedDocValues
Returns the number of unique values.- Specified by:
getValueCount
in 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:SortedDocValues
Retrieves the value for the specified ordinal. The returnedBytesRef
may be re-used across calls toSortedDocValues.lookupOrd(int)
so make sure tocopy it
if you want to keep it around.- Specified by:
lookupOrd
in 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:SortedDocValues
Ifkey
exists, returns its ordinal, else returns-insertionPoint-1
, likeArrays.binarySearch
.- Overrides:
lookupTerm
in classSortedDocValues
- Parameters:
key
- Key to look up- Throws:
java.io.IOException
-
termsEnum
public TermsEnum termsEnum() throws java.io.IOException
Description copied from class:SortedDocValues
Returns aTermsEnum
over the values. The enum supportsTermsEnum.ord()
andTermsEnum.seekExact(long)
.- Overrides:
termsEnum
in classSortedDocValues
- Throws:
java.io.IOException
-
-