Interface MergePolicy.MergeContext

  • All Known Implementing Classes:
    IndexWriter
    Enclosing class:
    MergePolicy

    public static interface MergePolicy.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.
    WARNING: This API is experimental and might change in incompatible ways in the next release.