Level

Type Alias Level 

Source
pub type Level = LevelCommon<SstableInfo>;

Aliased Type§

pub struct Level {
    pub level_idx: u32,
    pub level_type: LevelType,
    pub table_infos: Vec<SstableInfo>,
    pub total_file_size: u64,
    pub sub_level_id: u64,
    pub uncompressed_file_size: u64,
    pub vnode_partition_count: u32,
}

Fields§

§level_idx: u32§level_type: LevelType§table_infos: Vec<SstableInfo>§total_file_size: u64§sub_level_id: u64§uncompressed_file_size: u64§vnode_partition_count: u32

Implementations§

Source§

impl Level

Source

fn recompute_size(&mut self)

Source

fn normalize(&mut self)

Remove SSTs with empty table_ids, then recompute sizes.

Source

fn delete_ssts(&mut self, ids: &HashSet<HummockSstableId>) -> bool

Return true if any SST was actually removed.

Source

fn truncate_tables(&mut self, table_ids: &HashSet<TableId>)

Truncate specified table_ids from each SST’s metadata, remove SSTs that become empty, then recompute sizes.

Source§

impl Level