Class BufferedUpdates.DeletedTerms

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

static class BufferedUpdates.DeletedTerms extends Object implements Accountable
  • Field Details

  • Constructor Details

    • DeletedTerms

      DeletedTerms()
  • Method Details

    • get

      int get(Term term)
      Get the newest doc id of the deleted term.
      Parameters:
      term - The deleted term.
      Returns:
      The newest doc id of this deleted term.
    • put

      void put(Term term, int value)
      Put the newest doc id of the deleted term.
      Parameters:
      term - The deleted term.
      value - The newest doc id of the deleted term.
    • clear

      void clear()
    • size

      int size()
    • isEmpty

      boolean isEmpty()
    • keySet

      Set<Term> keySet()
      Just for test, not efficient.
    • forEachOrdered

      <E extends Exception> void forEachOrdered(BufferedUpdates.DeletedTerms.DeletedTermConsumer<E> consumer) throws E
      Consume all terms in a sorted order.

      Note: This is a destructive operation as it calls BytesRefHash.sort().

      Throws:
      E
      See Also:
    • getPool

      ByteBlockPool getPool()
      Visible for testing.
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object