risingwave_pb::hummock

Type Alias PbSstableInfo

source
pub type PbSstableInfo = SstableInfo;
Expand description

Alias for SstableInfo.

Aliased Type§

struct PbSstableInfo {
Show 14 fields pub object_id: u64, pub sst_id: u64, pub key_range: Option<KeyRange>, pub file_size: u64, pub table_ids: Vec<u32>, pub meta_offset: u64, pub stale_key_count: u64, pub total_key_count: u64, pub min_epoch: u64, pub max_epoch: u64, pub uncompressed_file_size: u64, pub range_tombstone_count: u64, pub bloom_filter_kind: i32, pub sst_size: u64,
}

Fields§

§object_id: u64§sst_id: u64§key_range: Option<KeyRange>§file_size: u64

represents the physical object size, which is usually used in the builder.

§table_ids: Vec<u32>§meta_offset: u64§stale_key_count: u64§total_key_count: u64§min_epoch: u64§max_epoch: u64§uncompressed_file_size: u64§range_tombstone_count: u64§bloom_filter_kind: i32§sst_size: u64

In order to calculate more finely in the compaction strategy, we need to re-calculate the sst_size after split sst sst_size represents the size of the sst instead of the object size(usually used in the meta).