abstract class DocValuesFieldUpdates extends java.lang.Object implements Accountable
Modifier and Type | Class and Description |
---|---|
protected static class |
DocValuesFieldUpdates.AbstractIterator |
(package private) static class |
DocValuesFieldUpdates.Iterator
An iterator over documents and their updated values.
|
(package private) static class |
DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates |
Modifier and Type | Field and Description |
---|---|
private int |
bitsPerValue |
(package private) long |
delGen |
protected PagedMutable |
docs |
(package private) java.lang.String |
field |
private boolean |
finished |
private static long |
HAS_NO_VALUE_MASK |
private static long |
HAS_VALUE_MASK |
protected int |
maxDoc |
protected static int |
PAGE_SIZE |
private static int |
SHIFT |
protected int |
size |
(package private) DocValuesType |
type |
Modifier | Constructor and Description |
---|---|
protected |
DocValuesFieldUpdates(int maxDoc,
long delGen,
java.lang.String field,
DocValuesType type) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
add(int doc) |
(package private) abstract void |
add(int doc,
BytesRef value) |
(package private) abstract void |
add(int docId,
DocValuesFieldUpdates.Iterator iterator)
Adds the value for the given docID.
|
(package private) abstract void |
add(int doc,
long value) |
private int |
addInternal(int doc,
long hasValueMask) |
(package private) boolean |
any()
Returns true if this instance contains any updates.
|
protected void |
ensureFinished() |
(package private) void |
finish()
Freezes internal data structures and sorts updates by docID for efficient iteration.
|
(package private) boolean |
getFinished() |
protected void |
grow(int size) |
(package private) abstract DocValuesFieldUpdates.Iterator |
iterator()
Returns an
DocValuesFieldUpdates.Iterator over the updated documents and their
values. |
static DocValuesFieldUpdates.Iterator |
mergedIterator(DocValuesFieldUpdates.Iterator[] subs)
Merge-sorts multiple iterators, one per delGen, favoring the largest delGen that has updates for a given docID.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
(package private) void |
reset(int doc)
Adds an update that resets the documents value.
|
protected void |
resize(int size) |
(package private) int |
size() |
protected void |
swap(int i,
int j) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
protected static final int PAGE_SIZE
private static final long HAS_VALUE_MASK
private static final long HAS_NO_VALUE_MASK
private static final int SHIFT
final java.lang.String field
final DocValuesType type
final long delGen
private final int bitsPerValue
private boolean finished
protected final int maxDoc
protected PagedMutable docs
protected int size
protected DocValuesFieldUpdates(int maxDoc, long delGen, java.lang.String field, DocValuesType type)
public static DocValuesFieldUpdates.Iterator mergedIterator(DocValuesFieldUpdates.Iterator[] subs)
final boolean getFinished()
abstract void add(int doc, long value)
abstract void add(int doc, BytesRef value)
abstract void add(int docId, DocValuesFieldUpdates.Iterator iterator)
DocValuesFieldUpdates.Iterator.longValue()
or DocValuesFieldUpdates.Iterator.binaryValue()
since the implementation knows if it's a long value iterator or binary valueabstract DocValuesFieldUpdates.Iterator iterator()
DocValuesFieldUpdates.Iterator
over the updated documents and their
values.final void finish()
boolean any()
final int size()
void reset(int doc)
doc
- the doc to updatefinal int add(int doc)
private int addInternal(int doc, long hasValueMask)
protected void swap(int i, int j)
protected void grow(int size)
protected void resize(int size)
protected final void ensureFinished()
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable