java.lang.Object
org.apache.lucene.index.BufferedUpdates
- All Implemented Interfaces:
Accountable
Holds buffered deletes and updates, by docID, term or query for a single segment. This is used to
hold buffered pending deletes and updates against the to-be-flushed segment. Once the deletes and
updates are pushed (on flush in DocumentsWriter), they are converted to a
FrozenBufferedUpdates
instance and pushed to the BufferedUpdatesStream
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
private final Counter
(package private) final BufferedUpdates.DeletedTerms
(package private) final Map
<String, FieldUpdatesBuffer> (package private) final Counter
(package private) long
static final Integer
(package private) final AtomicInteger
(package private) final String
private static final boolean
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addBinaryUpdate
(DocValuesUpdate.BinaryDocValuesUpdate update, int docIDUpto) (package private) void
addNumericUpdate
(DocValuesUpdate.NumericDocValuesUpdate update, int docIDUpto) void
void
(package private) boolean
any()
(package private) void
clear()
(package private) void
long
Return the memory usage of this object in bytes.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BYTES_PER_DEL_QUERY
static final int BYTES_PER_DEL_QUERY -
numFieldUpdates
-
deleteTerms
-
deleteQueries
-
fieldUpdates
-
MAX_INT
-
bytesUsed
-
fieldUpdatesBytesUsed
-
VERBOSE_DELETES
private static final boolean VERBOSE_DELETES- See Also:
-
gen
long gen -
segmentName
-
-
Constructor Details
-
BufferedUpdates
-
-
Method Details
-
toString
-
addQuery
-
addTerm
-
addNumericUpdate
-
addBinaryUpdate
-
clearDeleteTerms
void clearDeleteTerms() -
clear
void clear() -
any
boolean any() -
ramBytesUsed
public long ramBytesUsed()Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsed
in interfaceAccountable
-