final class BinaryDocValuesFieldUpdates extends DocValuesFieldUpdates
DocValuesFieldUpdates
which holds updates of documents, of a single
BinaryDocValuesField
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
BinaryDocValuesFieldUpdates.Iterator |
DocValuesFieldUpdates.AbstractIterator, DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
Modifier and Type | Field and Description |
---|---|
private PagedGrowableWriter |
lengths |
private PagedGrowableWriter |
offsets |
private BytesRefBuilder |
values |
Constructor and Description |
---|
BinaryDocValuesFieldUpdates(long delGen,
java.lang.String field,
int maxDoc) |
Modifier and Type | Method and Description |
---|---|
void |
add(int doc,
BytesRef value) |
void |
add(int docId,
DocValuesFieldUpdates.Iterator iterator)
Adds the value for the given docID.
|
void |
add(int doc,
long value) |
protected void |
grow(int size) |
BinaryDocValuesFieldUpdates.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 PagedGrowableWriter offsets
private PagedGrowableWriter lengths
private BytesRefBuilder values
public BinaryDocValuesFieldUpdates(long delGen, java.lang.String field, int maxDoc)
public void add(int doc, long value)
add
in class DocValuesFieldUpdates
public 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
public void add(int doc, BytesRef 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
public BinaryDocValuesFieldUpdates.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