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, longValueall, empty, range, slowAdvanceprivate 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()
DocIdSetIteratorDocIdSetIterator.NO_MORE_DOCS if there are no more docs in the
set.nextDoc in class DocValuesFieldUpdates.Iteratorprotected 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 DocIdSetIteratorfinal long delGen()
DocValuesFieldUpdates.IteratordelGen in class DocValuesFieldUpdates.Iteratorfinal boolean hasValue()
DocValuesFieldUpdates.IteratorhasValue in class DocValuesFieldUpdates.Iterator