Class BufferedUpdates

java.lang.Object
org.apache.lucene.index.BufferedUpdates
All Implemented Interfaces:
Accountable

class BufferedUpdates extends Object implements 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.
  • Field Details

  • Constructor Details

    • BufferedUpdates

      public BufferedUpdates(String segmentName)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addQuery

      public void addQuery(Query query, int docIDUpto)
    • addTerm

      public void addTerm(Term term, int docIDUpto)
    • addNumericUpdate

      void addNumericUpdate(DocValuesUpdate.NumericDocValuesUpdate update, int docIDUpto)
    • addBinaryUpdate

      void addBinaryUpdate(DocValuesUpdate.BinaryDocValuesUpdate update, int docIDUpto)
    • 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 interface Accountable