Versions in this module Expand all Collapse all v0 v0.7.0 Feb 27, 2018 v0.6.0 Jan 5, 2018 Changes in this version + var DefaultMergePlanOptions = 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 + 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