Class BufferedUpdates.DeletedTerms

    • Constructor Detail

      • DeletedTerms

        DeletedTerms()
    • Method Detail

      • 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

        java.util.Set<Term> keySet()
        Just for test, not efficient.
      • 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