risingwave_storage::hummock::utils

Function prune_overlapping_ssts

source
pub fn prune_overlapping_ssts<'a, R, B>(
    ssts: &'a [SstableInfo],
    table_id: TableId,
    table_key_range: &'a R,
) -> impl DoubleEndedIterator<Item = &'a SstableInfo>
where R: RangeBounds<TableKey<B>>, B: AsRef<[u8]> + EmptySliceRef,
Expand description

Prune overlapping SSTs that does not overlap with a specific key range or does not overlap with a specific table id. Returns the sst ids after pruning.