
TieredMergePolicy
- Namespace
- Rowles.LeanCorpus.Index.Indexer
- Assembly
- Rowles.LeanCorpus.dll
Selects balanced merges using physical bytes and reclaimable deletions.
public sealed class TieredMergePolicy : IMergePolicy
- Inheritance
-
TieredMergePolicy
- Implements
TieredMergePolicy(int)
Initialises a byte-aware tiered policy.
DeletesPctAllowed
Deletion percentage that makes a segment eligible for reclamation.
FloorSegmentMB
Segments smaller than this value are treated as this size for tier budgeting.
MaxMergeAtOnce
Maximum number of source segments in one merge.
MaxMergedSegmentMB
Maximum normal merged-segment size.
SegmentsPerTier
Target number of segments allowed per logarithmic size tier.
FindMerges(IReadOnlyList<SegmentInfo>, IReadOnlySet<string>)
Returns the segments that should be merged from the given list. Returns an empty list if no merge is needed. The caller is responsible for executing the merge and replacing the returned segments with the merged result.