llkv_column_map/store/layout.rs
1use crate::types::LogicalFieldId;
2use llkv_storage::types::PhysicalKey;
3
4/// Statistics for a single descriptor page.
5#[derive(Debug, Clone)]
6pub struct DescriptorPageStats {
7 pub page_pk: PhysicalKey,
8 pub entry_count: u32,
9 pub page_size_bytes: usize,
10}
11
12/// Aggregated layout statistics for a single column.
13#[derive(Debug, Clone)]
14pub struct ColumnLayoutStats {
15 pub field_id: LogicalFieldId,
16 pub total_rows: u64,
17 pub total_chunks: u64,
18 pub pages: Vec<DescriptorPageStats>,
19}