PendingDeletes
This class handles accounting and applying pending deletes for live segment readers
Constructors
Functions
Resets the pending docs
Returns true iff the segment represented by this PendingDeletes is fully deleted
Returns true if we have to initialize this PendingDeletes before .delete; otherwise this PendingDeletes is ready to accept deletes. A PendingDeletes can be initialized by providing it a reader via .onNewReader.
Returns true if the given reader needs to be refreshed in order to see the latest deletes
Returns the number of pending deletes that are not written to disk.
Called for every field update for the given field at flush time
Called once a new reader is opened for this segment ie. when deletes or updates are applied.
Writes the live docs to disk and returns true if any new docs were written.