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, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprivate 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 DocValuesFieldUpdatespublic void add(int docId,
DocValuesFieldUpdates.Iterator iterator)
DocValuesFieldUpdatesDocValuesFieldUpdates.Iterator.longValue() or DocValuesFieldUpdates.Iterator.binaryValue()
since the implementation knows if it's a long value iterator or binary valueadd in class DocValuesFieldUpdatespublic void add(int doc,
BytesRef value)
add in class DocValuesFieldUpdatesprotected void swap(int i,
int j)
swap in class DocValuesFieldUpdatesprotected void grow(int size)
grow in class DocValuesFieldUpdatesprotected void resize(int size)
resize in class DocValuesFieldUpdatespublic BinaryDocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdatesDocValuesFieldUpdates.Iterator over the updated documents and their
values.iterator in class DocValuesFieldUpdatespublic long ramBytesUsed()
AccountableramBytesUsed in interface AccountableramBytesUsed in class DocValuesFieldUpdates