protected abstract static class DocValuesFieldUpdates.AbstractIterator extends DocValuesFieldUpdates.Iterator
Modifier and Type | Field and Description |
---|---|
private long |
delGen |
private int |
doc |
private PagedMutable |
docs |
private boolean |
hasValue |
private long |
idx |
private int |
size |
NO_MORE_DOCS
Constructor and Description |
---|
AbstractIterator(int size,
PagedMutable docs,
long delGen) |
Modifier and Type | Method and Description |
---|---|
(package private) long |
delGen()
Returns delGen for this packet.
|
int |
docID()
Returns the following:
-1 if DocIdSetIterator.nextDoc() or
DocIdSetIterator.advance(int) were not called yet. |
(package private) boolean |
hasValue()
Returns true if this doc has a value
|
int |
nextDoc()
Advances to the next document in the set and returns the doc it is
currently on, or
DocIdSetIterator.NO_MORE_DOCS if there are no more docs in the
set.NOTE: after the iterator has exhausted you should not call this method, as it may result in unpredicted behavior. |
protected abstract void |
set(long idx)
Called when the iterator moved to the next document
|
advance, advanceExact, asBinaryDocValues, asNumericDocValues, binaryValue, cost, longValue
all, empty, range, slowAdvance
private final int size
private final PagedMutable docs
private long idx
private int doc
private final long delGen
private boolean hasValue
AbstractIterator(int size, PagedMutable docs, long delGen)
public final int nextDoc()
DocIdSetIterator
DocIdSetIterator.NO_MORE_DOCS
if there are no more docs in the
set.nextDoc
in class DocValuesFieldUpdates.Iterator
protected abstract void set(long idx)
idx
- the internal index to set the value topublic final int docID()
DocIdSetIterator
-1
if DocIdSetIterator.nextDoc()
or
DocIdSetIterator.advance(int)
were not called yet.
DocIdSetIterator.NO_MORE_DOCS
if the iterator has exhausted.
docID
in class DocIdSetIterator
final long delGen()
DocValuesFieldUpdates.Iterator
delGen
in class DocValuesFieldUpdates.Iterator
final boolean hasValue()
DocValuesFieldUpdates.Iterator
hasValue
in class DocValuesFieldUpdates.Iterator