pub type PbStorageTableDesc = StorageTableDesc;
Expand description
Alias for StorageTableDesc
.
Aliased Type§
struct PbStorageTableDesc {
pub table_id: u32,
pub columns: Vec<ColumnDesc>,
pub pk: Vec<ColumnOrder>,
pub dist_key_in_pk_indices: Vec<u32>,
pub value_indices: Vec<u32>,
pub read_prefix_len_hint: u32,
pub versioned: bool,
pub stream_key: Vec<u32>,
pub vnode_col_idx_in_pk: Option<u32>,
pub retention_seconds: Option<u32>,
pub maybe_vnode_count: Option<u32>,
}
Fields§
§table_id: u32
§columns: Vec<ColumnDesc>
§pk: Vec<ColumnOrder>
TODO: may refactor primary key representations
dist_key_in_pk_indices: Vec<u32>
§value_indices: Vec<u32>
§read_prefix_len_hint: u32
§versioned: bool
Whether the table is versioned. If true
, column-aware row encoding will
be used to be compatible with schema changes.
stream_key: Vec<u32>
§vnode_col_idx_in_pk: Option<u32>
§retention_seconds: Option<u32>
§maybe_vnode_count: Option<u32>
Total vnode count of the table.
Can be unset if the table is created in older versions where variable vnode count is not
supported, in which case a default value of 256 (or 1 for singleton) should be used.
Use VnodeCountCompat::vnode_count
to access it.