abstract class DocValuesFieldUpdates
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DocValuesFieldUpdates.Container |
(package private) static class |
DocValuesFieldUpdates.Iterator
An iterator over documents and their updated values.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
field |
protected static int |
PAGE_SIZE |
(package private) DocValuesType |
type |
Modifier | Constructor and Description |
---|---|
protected |
DocValuesFieldUpdates(java.lang.String field,
DocValuesType type) |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(int doc,
java.lang.Object value)
Add an update to a document.
|
abstract boolean |
any()
Returns true if this instance contains any updates.
|
protected static int |
estimateCapacity(int size)
Returns the estimated capacity of a
PagedGrowableWriter given the
actual number of stored elements. |
abstract DocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
abstract void |
merge(DocValuesFieldUpdates other)
Merge with another
DocValuesFieldUpdates . |
abstract long |
ramBytesPerDoc()
Returns approximate RAM bytes used per document.
|
protected static final int PAGE_SIZE
final java.lang.String field
final DocValuesType type
protected DocValuesFieldUpdates(java.lang.String field, DocValuesType type)
protected static int estimateCapacity(int size)
PagedGrowableWriter
given the
actual number of stored elements.public abstract void add(int doc, java.lang.Object value)
null
.public abstract DocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdates.Iterator
over the updated documents and their
values.public abstract void merge(DocValuesFieldUpdates other)
DocValuesFieldUpdates
. 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.public abstract boolean any()
public abstract long ramBytesPerDoc()