Class PendingSoftDeletes

    • Field Detail

      • field

        private final java.lang.String field
      • dvGeneration

        private long dvGeneration
    • Method Detail

      • delete

        boolean delete​(int docID)
                throws java.io.IOException
        Description copied from class: PendingDeletes
        Marks a document as deleted in this segment and return true if a document got actually deleted or if the document was already deleted.
        Overrides:
        delete in class PendingDeletes
        Throws:
        java.io.IOException
      • numPendingDeletes

        protected int numPendingDeletes()
        Description copied from class: PendingDeletes
        Returns the number of pending deletes that are not written to disk.
        Overrides:
        numPendingDeletes in class PendingDeletes
      • writeLiveDocs

        boolean writeLiveDocs​(Directory dir)
                       throws java.io.IOException
        Description copied from class: PendingDeletes
        Writes the live docs to disk and returns true if any new docs were written.
        Overrides:
        writeLiveDocs in class PendingDeletes
        Throws:
        java.io.IOException
      • applySoftDeletes

        static int applySoftDeletes​(DocIdSetIterator iterator,
                                    FixedBitSet bits)
                             throws java.io.IOException
        Clears all bits in the given bitset that are set and are also in the given DocIdSetIterator.
        Parameters:
        iterator - the doc ID set iterator for apply
        bits - the bit set to apply the deletes to
        Returns:
        the number of bits changed by this function
        Throws:
        java.io.IOException
      • assertPendingDeletes

        private boolean assertPendingDeletes()
      • ensureInitialized

        private void ensureInitialized​(IOSupplier<CodecReader> readerIOSupplier)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readFieldInfos

        private FieldInfos readFieldInfos()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • countSoftDeletes

        static int countSoftDeletes​(DocIdSetIterator softDeletedDocs,
                                    Bits hardDeletes)
                             throws java.io.IOException
        Throws:
        java.io.IOException