Versions in this module Expand all Collapse all v2 v2.1.2 Sep 17, 2021 Changes in this version + const MaxSegmentSizeLimit + var DefaultMergePlanOptions = MergePlanOptions + var ErrMaxSegmentSizeTooLarge = errors.New("MaxSegmentSize exceeds the size limit") + var SingleSegmentMergePlanOptions = MergePlanOptions + func CalcBudget(totalSize int64, firstTierSize int64, o *MergePlanOptions) (budgetNumSegments int) + func ScoreSegments(segments []Segment, o *MergePlanOptions) float64 + func ToBarChart(prefix string, barMax int, segments []Segment, plan *MergePlan) string + func ValidateMergePlannerOptions(options *MergePlanOptions) error + type MergePlan struct + Tasks []*MergeTask + func Plan(segments []Segment, o *MergePlanOptions) (*MergePlan, error) + type MergePlanOptions struct + CalcBudget func(totalSize int64, firstTierSize int64, o *MergePlanOptions) (budgetNumSegments int) + FloorSegmentSize int64 + Logger func(string) + MaxSegmentSize int64 + MaxSegmentsPerTier int + ReclaimDeletesWeight float64 + ScoreSegments func(segments []Segment, o *MergePlanOptions) float64 + SegmentsPerMergeTask int + TierGrowth float64 + func (o *MergePlanOptions) RaiseToFloorSegmentSize(s int64) int64 + type MergeTask struct + Segments []Segment + type Segment interface + FullSize func() int64 + Id func() uint64 + LiveSize func() int64 Other modules containing this package github.com/timezstyle/bleve