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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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