Skip to main content

Module bucket

Module bucket 

Source
Expand description

Event-time bucket planning and source coverage.

Structsยง

IndexBucket ๐Ÿ”’
Index files sharing a non-overlapping, half-open time bucket.
SeriesBucket ๐Ÿ”’
SSTs grouped into a half-open time interval for an aggregate series-index build.
SeriesIndexPlan ๐Ÿ”’
Next bucket coverage and the work required to publish it, computed without I/O.

Constantsยง

SERIES_INDEX_TRIGGER_FILES ๐Ÿ”’

Functionsยง

group_files_into_series_buckets ๐Ÿ”’
Groups SSTs across levels into sorted, disjoint time buckets without planning builds.
group_series_buckets ๐Ÿ”’
Merges overlapping spans sorted by nondecreasing start; equal starts are allowed. Returns sorted, disjoint buckets. Adjacent half-open intervals remain separate. All spans must use the same compaction-window width for their SST summaries.
merge_window_sequences ๐Ÿ”’
Merges summaries sharing a start, relying on WindowSequenceโ€™s sequence assumption.
plan_series_indexes ๐Ÿ”’
Plans whole-bucket replacements when source SST summaries change. The returned bucket map is publishable only after every planned build and the catalog writes succeed.
reconcile_series_buckets ๐Ÿ”’
Expands SST buckets through existing index coverage before grouping build inputs.
rounded_bucket_width ๐Ÿ”’