risingwave_storage::hummock::utils

Function prune_nonoverlapping_ssts

source
pub fn prune_nonoverlapping_ssts<'a>(
    ssts: &'a [SstableInfo],
    user_key_range: (Bound<UserKey<&'a [u8]>>, Bound<UserKey<&'a [u8]>>),
) -> impl DoubleEndedIterator<Item = &'a SstableInfo>
Expand description

Prune non-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.