public abstract class SortedNumericDocValues extends DocIdSetIterator
Long.compare(long, long)
.NO_MORE_DOCS
Modifier | Constructor and Description |
---|---|
protected |
SortedNumericDocValues()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
advanceExact(int target)
Advance the iterator to exactly
target and return whether
target has a value. |
abstract int |
docValueCount()
Retrieves the number of values for the current document.
|
abstract long |
nextValue()
Iterates to the next value in the current document.
|
advance, all, cost, docID, empty, nextDoc, range, slowAdvance
protected SortedNumericDocValues()
public abstract long nextValue() throws IOException
docValueCount()
times
for the document.IOException
public abstract int docValueCount()
advanceExact(int)
returned false
.public abstract boolean advanceExact(int target) throws IOException
target
and return whether
target
has a value.
target
must be greater than or equal to the current
doc ID
and must be a valid doc ID, ie. ≥ 0 and
< maxDoc
.
After this method returns, DocIdSetIterator.docID()
returns target
.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.