Module org.apache.lucene.core
Package org.apache.lucene.index
Class DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
java.lang.Object
org.apache.lucene.index.DocValuesFieldUpdates
org.apache.lucene.index.DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
- All Implemented Interfaces:
Accountable
- Direct Known Subclasses:
NumericDocValuesFieldUpdates.SingleValueNumericDocValuesFieldUpdates
- Enclosing class:
DocValuesFieldUpdates
abstract static class DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates
extends DocValuesFieldUpdates
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.DocValuesFieldUpdates
DocValuesFieldUpdates.AbstractIterator, DocValuesFieldUpdates.Iterator, DocValuesFieldUpdates.SingleValueDocValuesFieldUpdates -
Field Summary
FieldsFields inherited from class org.apache.lucene.index.DocValuesFieldUpdates
delGen, docs, field, maxDoc, PAGE_SIZE, size, typeFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSingleValueDocValuesFieldUpdates(int maxDoc, long delGen, String field, DocValuesType type) -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(int doc, long value) (package private) voidadd(int docId, DocValuesFieldUpdates.Iterator iterator) Adds the value for the given docID.(package private) void(package private) booleanany()Returns true if this instance contains any updates.protected abstract BytesRef(package private) DocValuesFieldUpdates.Iteratoriterator()Returns anDocValuesFieldUpdates.Iteratorover the updated documents and their values.protected abstract longlongReturn the memory usage of this object in bytes.(package private) voidreset(int doc) Adds an update that resets the documents value.Methods inherited from class org.apache.lucene.index.DocValuesFieldUpdates
add, ensureFinished, finish, getFinished, grow, mergedIterator, resize, size, swapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
bitSet
-
hasNoValue
-
hasAtLeastOneValue
private boolean hasAtLeastOneValue
-
-
Constructor Details
-
SingleValueDocValuesFieldUpdates
protected SingleValueDocValuesFieldUpdates(int maxDoc, long delGen, String field, DocValuesType type)
-
-
Method Details
-
add
void add(int doc, long value) - Specified by:
addin classDocValuesFieldUpdates
-
add
- Specified by:
addin classDocValuesFieldUpdates
-
reset
void reset(int doc) Description copied from class:DocValuesFieldUpdatesAdds an update that resets the documents value.- Overrides:
resetin classDocValuesFieldUpdates- Parameters:
doc- the doc to update
-
add
Description copied from class:DocValuesFieldUpdatesAdds the value for the given docID. This method prevents conditional calls toDocValuesFieldUpdates.Iterator.longValue()orDocValuesFieldUpdates.Iterator.binaryValue()since the implementation knows if it's a long value iterator or binary value- Specified by:
addin classDocValuesFieldUpdates
-
binaryValue
-
longValue
protected abstract long longValue() -
any
boolean any()Description copied from class:DocValuesFieldUpdatesReturns true if this instance contains any updates.- Overrides:
anyin classDocValuesFieldUpdates
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable- Overrides:
ramBytesUsedin classDocValuesFieldUpdates
-
iterator
DocValuesFieldUpdates.Iterator iterator()Description copied from class:DocValuesFieldUpdatesReturns anDocValuesFieldUpdates.Iteratorover the updated documents and their values.- Specified by:
iteratorin classDocValuesFieldUpdates
-