Module org.apache.lucene.core
Package org.apache.lucene.index
Class BinaryDocValuesFieldUpdates.Iterator
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.DocValuesIterator
org.apache.lucene.index.DocValuesFieldUpdates.Iterator
org.apache.lucene.index.DocValuesFieldUpdates.AbstractIterator
org.apache.lucene.index.BinaryDocValuesFieldUpdates.Iterator
- Enclosing class:
- BinaryDocValuesFieldUpdates
static final class BinaryDocValuesFieldUpdates.Iterator
extends DocValuesFieldUpdates.AbstractIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final PagedGrowableWriter
private int
private final PagedGrowableWriter
private final BytesRef
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
Constructor Summary
ConstructorsConstructorDescriptionIterator
(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen) -
Method Summary
Modifier and TypeMethodDescription(package private) BytesRef
Returns a binary value for the current document if this iterator is a binary value iterator.(package private) long
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 documentMethods inherited from class org.apache.lucene.index.DocValuesFieldUpdates.AbstractIterator
delGen, docID, hasValue, nextDoc
Methods inherited from class org.apache.lucene.index.DocValuesFieldUpdates.Iterator
advance, advanceExact, asBinaryDocValues, asNumericDocValues, cost
Methods inherited from class org.apache.lucene.search.DocIdSetIterator
all, empty, range, slowAdvance
-
Field Details
-
offsets
-
lengths
-
value
-
offset
private int offset -
length
private int length
-
-
Constructor Details
-
Iterator
Iterator(int size, PagedGrowableWriter offsets, PagedGrowableWriter lengths, PagedMutable docs, BytesRef values, long delGen)
-
-
Method Details
-
binaryValue
BytesRef binaryValue()Description copied from class:DocValuesFieldUpdates.Iterator
Returns a binary value for the current document if this iterator is a binary value iterator.- Specified by:
binaryValue
in classDocValuesFieldUpdates.Iterator
-
set
protected void set(long idx) Description copied from class:DocValuesFieldUpdates.AbstractIterator
Called when the iterator moved to the next document- Specified by:
set
in classDocValuesFieldUpdates.AbstractIterator
- Parameters:
idx
- the internal index to set the value to
-
longValue
long longValue()Description copied from class:DocValuesFieldUpdates.Iterator
Returns a long value for the current document if this iterator is a long iterator.- Specified by:
longValue
in classDocValuesFieldUpdates.Iterator
-