static final class BinaryDocValuesFieldUpdates.Iterator extends DocValuesFieldUpdates.AbstractIterator
Modifier and Type | Field and Description |
---|---|
private int |
length |
private PagedGrowableWriter |
lengths |
private int |
offset |
private PagedGrowableWriter |
offsets |
private BytesRef |
value |
NO_MORE_DOCS
Constructor and Description |
---|
Iterator(int size,
PagedGrowableWriter offsets,
PagedGrowableWriter lengths,
PagedMutable docs,
BytesRef values,
long delGen) |
Modifier and Type | Method and Description |
---|---|
(package private) BytesRef |
binaryValue()
Returns a binary value for the current document if this iterator is a binary value iterator.
|
(package private) long |
longValue()
Returns a long value for the current document if this iterator is a long iterator.
|
protected void |
set(long idx)
Called when the iterator moved to the next document
|
delGen, docID, hasValue, nextDoc
advance, advanceExact, asBinaryDocValues, asNumericDocValues, cost
all, empty, range, slowAdvance
private final PagedGrowableWriter offsets
private final PagedGrowableWriter lengths
private final BytesRef value
private int offset
private int length
Iterator(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen)
BytesRef binaryValue()
DocValuesFieldUpdates.Iterator
binaryValue
in class DocValuesFieldUpdates.Iterator
protected void set(long idx)
DocValuesFieldUpdates.AbstractIterator
set
in class DocValuesFieldUpdates.AbstractIterator
idx
- the internal index to set the value tolong longValue()
DocValuesFieldUpdates.Iterator
longValue
in class DocValuesFieldUpdates.Iterator