Package org.apache.lucene.index
Class SortedNumericDocValues
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.index.DocValuesIterator
-
- org.apache.lucene.index.SortedNumericDocValues
-
- Direct Known Subclasses:
FilterSortedNumericDocValues
,LegacySortedNumericDocValuesWrapper
,SingletonSortedNumericDocValues
,SortedNumericDocValuesWriter.BufferedSortedNumericDocValues
,SortedNumericDocValuesWriter.SortingSortedNumericDocValues
public abstract class SortedNumericDocValues extends DocValuesIterator
A list of per-document numeric values, sorted according toLong.compare(long, long)
.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SortedNumericDocValues()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
docValueCount()
Retrieves the number of values for the current document.abstract long
nextValue()
Iterates to the next value in the current document.-
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
-
-
-
-
Method Detail
-
nextValue
public abstract long nextValue() throws java.io.IOException
Iterates to the next value in the current document. Do not call this more thandocValueCount()
times for the document.- Throws:
java.io.IOException
-
docValueCount
public abstract int docValueCount()
Retrieves the number of values for the current document. This must always be greater than zero. It is illegal to call this method afterDocValuesIterator.advanceExact(int)
returnedfalse
.
-
-