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.Container| Modifier and Type | Field and Description |
|---|---|
private int |
bitsPerValue |
private PagedMutable |
docs |
private PagedGrowableWriter |
lengths |
private PagedGrowableWriter |
offsets |
private int |
size |
private BytesRefBuilder |
values |
field, PAGE_SIZE, type| Constructor and Description |
|---|
BinaryDocValuesFieldUpdates(java.lang.String field,
int maxDoc) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int doc,
java.lang.Object value)
Add an update to a document.
|
boolean |
any()
Returns true if this instance contains any updates.
|
BinaryDocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
void |
merge(DocValuesFieldUpdates other)
Merge with another
DocValuesFieldUpdates. |
long |
ramBytesPerDoc()
Returns approximate RAM bytes used per document.
|
estimateCapacityprivate PagedMutable docs
private PagedGrowableWriter offsets
private PagedGrowableWriter lengths
private BytesRefBuilder values
private int size
private final int bitsPerValue
public BinaryDocValuesFieldUpdates(java.lang.String field,
int maxDoc)
public void add(int doc,
java.lang.Object value)
DocValuesFieldUpdatesnull.add in class DocValuesFieldUpdatespublic BinaryDocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdatesDocValuesFieldUpdates.Iterator over the updated documents and their
values.iterator in class DocValuesFieldUpdatespublic void merge(DocValuesFieldUpdates other)
DocValuesFieldUpdatesDocValuesFieldUpdates. This is called for a
segment which received updates while it was being merged. The given updates
should override whatever updates are in that instance.merge in class DocValuesFieldUpdatespublic boolean any()
DocValuesFieldUpdatesany in class DocValuesFieldUpdatespublic long ramBytesPerDoc()
DocValuesFieldUpdatesramBytesPerDoc in class DocValuesFieldUpdates