pub fn split_promotion(
range: TimeRange,
rung: TimeDelta,
rows: &[&PartitionFreshnessRow],
bytes: &(dyn Fn(TimeRange) -> i64 + Sync),
cap: i64,
) -> Vec<PromotionTarget>Expand description
Picks what to merge within one covered, closed bucket: the whole of range when rows merge
within the byte cap and a rebuild of range would read at most cap source bytes. Otherwise,
when the rows would merge but a cap is exceeded, each child bucket of the next finer rung gets
the same treatment over the rows lying inside it. A child that a row straddles is skipped,
since the row cannot be split. With fewer than two rows there is nothing to merge.