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 |
Modifier and Type | Field and Description |
---|---|
private int |
bitsPerValue |
private PagedMutable |
docs |
private PagedGrowableWriter |
lengths |
private PagedGrowableWriter |
offsets |
private int |
size |
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,
java.lang.Object value)
Add an update to a document.
|
boolean |
any()
Returns true if this instance contains any updates.
|
void |
finish()
Freezes internal data structures and sorts updates by docID for efficient iteration.
|
BinaryDocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
long |
ramBytesUsed()
Returns approximate RAM bytes used.
|
int |
size() |
getFinished, mergedIterator
private PagedMutable docs
private PagedGrowableWriter offsets
private PagedGrowableWriter lengths
private BytesRefBuilder values
private int size
private final int bitsPerValue
public BinaryDocValuesFieldUpdates(long delGen, java.lang.String field, int maxDoc)
public int size()
size
in class DocValuesFieldUpdates
public void add(int doc, java.lang.Object value)
DocValuesFieldUpdates
null
.add
in class DocValuesFieldUpdates
public void finish()
DocValuesFieldUpdates
finish
in class DocValuesFieldUpdates
public BinaryDocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdates
DocValuesFieldUpdates.Iterator
over the updated documents and their
values.iterator
in class DocValuesFieldUpdates
public boolean any()
DocValuesFieldUpdates
any
in class DocValuesFieldUpdates
public long ramBytesUsed()
DocValuesFieldUpdates
ramBytesUsed
in class DocValuesFieldUpdates