Skip to main content

plan_dense_buckets

Function plan_dense_buckets 

Source
pub fn plan_dense_buckets(
    insert_range: TimeRange,
    rung: TimeDelta,
    finest: TimeDelta,
    now: DateTime<Utc>,
    grace: TimeDelta,
) -> Vec<PlannedBucket>
Expand description

Plans the buckets to materialize over insert_range (rung-aligned) when no per-bucket count is available: every bucket is assumed non-empty and none descends on object count. A closed bucket is emitted at rung; only the open edge descends, down to finest. A bucket that begins at or after insert_range.end is dropped, so the open edge stops at the end of the range instead of planning empty future buckets.

nb_blocks and nb_objects of the result are placeholders: the caller probes each bucket itself.