MergeContext

interface MergeContext

This interface represents the current context of the merge selection process. It allows to access real-time information like the currently merging segments or how many deletes a segment would claim back if merged. This context might be stateful and change during the execution of a merge policy's selection processes.

Inheritors

Properties

Link copied to clipboard
abstract val infoStream: InfoStream

Returns the info stream that can be used to log messages

Link copied to clipboard

Returns an unmodifiable set of segments that are currently merging.

Functions

Link copied to clipboard
abstract fun numDeletedDocs(info: SegmentCommitInfo): Int

Returns the number of deleted documents in the given segments.

Link copied to clipboard

Returns the number of deletes a merge would claim back if the given segment is merged.