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: u32Implementations§
Source§impl Level
impl Level
fn recompute_size(&mut self)
Sourcefn delete_ssts(&mut self, ids: &HashSet<HummockSstableId>) -> bool
fn delete_ssts(&mut self, ids: &HashSet<HummockSstableId>) -> bool
Return true if any SST was actually removed.
Sourcefn truncate_tables(&mut self, table_ids: &HashSet<TableId>)
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.