risingwave_hummock_sdk::key_range

Trait KeyRangeCommon

source
pub trait KeyRangeCommon {
    // Required methods
    fn full_key_overlap(&self, other: &Self) -> bool;
    fn full_key_extend(&mut self, other: &Self);
    fn sstable_overlap(&self, other: &Self) -> bool;
    fn compare_right_with_user_key(&self, ukey: UserKey<&[u8]>) -> Ordering;

    // Provided method
    fn compare_right_with(&self, full_key: &[u8]) -> Ordering { ... }
}

Required Methods§

source

fn full_key_overlap(&self, other: &Self) -> bool

source

fn full_key_extend(&mut self, other: &Self)

source

fn sstable_overlap(&self, other: &Self) -> bool

source

fn compare_right_with_user_key(&self, ukey: UserKey<&[u8]>) -> Ordering

Provided Methods§

source

fn compare_right_with(&self, full_key: &[u8]) -> Ordering

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl KeyRangeCommon for KeyRange

source§

fn full_key_overlap(&self, other: &Self) -> bool

source§

fn full_key_extend(&mut self, other: &Self)

source§

fn sstable_overlap(&self, other: &Self) -> bool

source§

fn compare_right_with_user_key(&self, ukey: UserKey<&[u8]>) -> Ordering

Implementors§

source§

impl KeyRangeCommon for risingwave_hummock_sdk::key_range::KeyRange