final class NumericDocValuesFieldUpdates extends DocValuesFieldUpdates
DocValuesFieldUpdates
which holds updates of documents, of a single
NumericDocValuesField
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
NumericDocValuesFieldUpdates.Iterator |
(package private) static class |
NumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates |
DocValuesFieldUpdates.AbstractIterator, DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
Modifier and Type | Field and Description |
---|---|
private long |
minValue |
private AbstractPagedMutable<?> |
values |
Constructor and Description |
---|
NumericDocValuesFieldUpdates(long delGen,
java.lang.String field,
int maxDoc) |
NumericDocValuesFieldUpdates(long delGen,
java.lang.String field,
long minValue,
long maxValue,
int maxDoc) |
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) |
protected void |
grow(int size) |
(package private) NumericDocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
protected void |
resize(int size) |
protected void |
swap(int i,
int j) |
add, any, ensureFinished, finish, getFinished, mergedIterator, reset, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
private AbstractPagedMutable<?> values
private final long minValue
NumericDocValuesFieldUpdates(long delGen, java.lang.String field, int maxDoc)
NumericDocValuesFieldUpdates(long delGen, java.lang.String field, long minValue, long maxValue, int maxDoc)
void add(int doc, BytesRef value)
add
in class DocValuesFieldUpdates
void 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
void add(int doc, long value)
add
in class DocValuesFieldUpdates
protected void swap(int i, int j)
swap
in class DocValuesFieldUpdates
protected void grow(int size)
grow
in class DocValuesFieldUpdates
protected void resize(int size)
resize
in class DocValuesFieldUpdates
NumericDocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdates
DocValuesFieldUpdates.Iterator
over the updated documents and their
values.iterator
in class DocValuesFieldUpdates
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
ramBytesUsed
in class DocValuesFieldUpdates