Skip to main content

Module run

Module run 

Source
Expand description

This file contains code to find sorted runs in a set if ranged items and along with the best way to merge these items to satisfy the desired run count.

Structsยง

SortedRun
A set of files with non-overlapping time ranges.

Traitsยง

Item
Trait for items to merge.
Ranged
Trait for any items with specific range (both boundaries are inclusive).

Functionsยง

file_primary_keys_overlap ๐Ÿ”’
files_overlap ๐Ÿ”’
Tests exclusive time overlap and inclusive PK overlap in one pinned schema.
files_overlap_inclusive ๐Ÿ”’
Includes touching time and PK boundaries when checking file dependencies.
find_overlapping_items
Uses the callerโ€™s inclusive overlap test after pruning disjoint time ranges.
find_sorted_runs
Finds sorted runs using the callerโ€™s overlap test within each active time range.
find_sorted_runs_by_time_range ๐Ÿ”’
merge_primary_key_ranges ๐Ÿ”’
primary_key_ranges_overlap ๐Ÿ”’
sort_ranged_items ๐Ÿ”’