risingwave_pb::hummock

Type Alias PbGroupConstruct

source
pub type PbGroupConstruct = GroupConstruct;
Expand description

Alias for GroupConstruct.

Aliased Type§

struct PbGroupConstruct {
    pub group_config: Option<CompactionConfig>,
    pub parent_group_id: u64,
    pub table_ids: Vec<u32>,
    pub group_id: u64,
    pub new_sst_start_id: u64,
    pub version: i32,
    pub split_key: Option<Vec<u8>>,
}

Fields§

§group_config: Option<CompactionConfig>§parent_group_id: u64

If parent_group_id is not 0, it means parent_group_id splits into parent_group_id and this group, so this group is not empty initially.

§table_ids: Vec<u32>
👎Deprecated
§group_id: u64§new_sst_start_id: u64§version: i32§split_key: Option<Vec<u8>>

The split_key is the key that the group is split by. When GroupConstruct with commit_epoch, split_key will be empty When split_key is not None, GroupConstruct tells to use split_key to check each level and split the sstable_info in the level into two groups (bounded by split_key). For the left sstable_info, split_key (right_exclusive=true) will be used as key_range_right. In the current implementation split_key always contains a table_id, vnode = 0, epoch = MAX