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 |
| Modifier and Type | Field and Description |
|---|---|
private int |
bitsPerValue |
private PagedMutable |
docs |
private int |
size |
private PagedGrowableWriter |
values |
| Constructor and Description |
|---|
NumericDocValuesFieldUpdates(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.
|
NumericDocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
long |
ramBytesUsed()
Returns approximate RAM bytes used.
|
int |
size() |
getFinished, mergedIteratorprivate final int bitsPerValue
private PagedMutable docs
private PagedGrowableWriter values
private int size
public NumericDocValuesFieldUpdates(long delGen,
java.lang.String field,
int maxDoc)
public int size()
size in class DocValuesFieldUpdatespublic void add(int doc,
java.lang.Object value)
DocValuesFieldUpdatesnull.add in class DocValuesFieldUpdatespublic void finish()
DocValuesFieldUpdatesfinish in class DocValuesFieldUpdatespublic NumericDocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdatesDocValuesFieldUpdates.Iterator over the updated documents and their
values.iterator in class DocValuesFieldUpdatespublic boolean any()
DocValuesFieldUpdatesany in class DocValuesFieldUpdatespublic long ramBytesUsed()
DocValuesFieldUpdatesramBytesUsed in class DocValuesFieldUpdates