Skip to main content

group_ranges_for_seq_scan

Function group_ranges_for_seq_scan 

Source
fn group_ranges_for_seq_scan(
    ranges: Vec<(RangeMeta, Option<(Bytes, Bytes)>)>,
) -> Vec<RangeMeta>
Expand description

Groups ranges so that all versions of a (primary key, timestamp) pair stay together for deduplication. Ranges with disjoint time or primary key ranges can be scanned independently. An unknown primary key range can match any key. It assumes each input range only contains a file or a memtable.