abstract static class DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates extends DocValuesFieldUpdates
DocValuesFieldUpdates.AbstractIterator, DocValuesFieldUpdates.Iterator, DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
Modifier and Type | Field and Description |
---|---|
private BitSet |
bitSet |
private boolean |
hasAtLeastOneValue |
private BitSet |
hasNoValue |
Modifier | Constructor and Description |
---|---|
protected |
SingleValueDocValuesFieldUpdates(int maxDoc,
long delGen,
java.lang.String field,
DocValuesType type) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(int doc,
BytesRef value) |
(package private) void |
add(int docId,
DocValuesFieldUpdates.Iterator iterator)
Adds the value for the given docID.
|
(package private) void |
add(int doc,
long value) |
(package private) boolean |
any()
Returns true if this instance contains any updates.
|
protected abstract BytesRef |
binaryValue() |
(package private) DocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
protected abstract long |
longValue() |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
(package private) void |
reset(int doc)
Adds an update that resets the documents value.
|
add, ensureFinished, finish, getFinished, grow, mergedIterator, resize, size, swap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
private final BitSet bitSet
private BitSet hasNoValue
private boolean hasAtLeastOneValue
protected SingleValueDocValuesFieldUpdates(int maxDoc, long delGen, java.lang.String field, DocValuesType type)
void add(int doc, long value)
add
in class DocValuesFieldUpdates
void add(int doc, BytesRef value)
add
in class DocValuesFieldUpdates
void reset(int doc)
DocValuesFieldUpdates
reset
in class DocValuesFieldUpdates
doc
- the doc to updatevoid add(int docId, DocValuesFieldUpdates.Iterator iterator)
DocValuesFieldUpdates
DocValuesFieldUpdates.Iterator.longValue()
or DocValuesFieldUpdates.Iterator.binaryValue()
since the implementation knows if it's a long value iterator or binary valueadd
in class DocValuesFieldUpdates
protected abstract BytesRef binaryValue()
protected abstract long longValue()
boolean any()
DocValuesFieldUpdates
any
in class DocValuesFieldUpdates
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
ramBytesUsed
in class DocValuesFieldUpdates
DocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdates
DocValuesFieldUpdates.Iterator
over the updated documents and their
values.iterator
in class DocValuesFieldUpdates