pub struct SSTableStatistics {
pub header: StatisticsHeader,
pub row_stats: RowStatistics,
pub timestamp_stats: TimestampStatistics,
pub column_stats: Vec<ColumnStatistics>,
pub table_stats: Option<TableStatistics>,
pub partition_stats: Option<PartitionStatistics>,
pub compression_stats: Option<CompressionStatistics>,
pub metadata: HashMap<String, String>,
pub serialization_header_columns: Vec<ColumnInfo>,
pub serialization_header_partition_keys: Vec<ColumnInfo>,
pub serialization_header_clustering_keys: Vec<ColumnInfo>,
pub tombstone_drop_times: Vec<(i64, u64)>,
}Expand description
Comprehensive SSTable statistics extracted from Statistics.db
Fields§
§header: StatisticsHeaderHeader information
row_stats: RowStatisticsRow count statistics
timestamp_stats: TimestampStatisticsTimestamp range information
column_stats: Vec<ColumnStatistics>Column-level statistics
table_stats: Option<TableStatistics>Table-level aggregated statistics, or None when NOT authoritatively
parsed from Statistics.db (issue #1653). The enhanced (nb) parser does
not decode these table-level metrics, so it is honestly None rather than
a fabricated all-zero TableStatistics; the legacy parser populates
Some(..).
partition_stats: Option<PartitionStatistics>Partition size distribution, or None when NOT authoritatively parsed from
Statistics.db (issue #1653 — the enhanced parser previously fabricated an
all-zero PartitionStatistics).
compression_stats: Option<CompressionStatistics>Compression statistics, or None when NOT authoritatively parsed from
Statistics.db (issue #1653 — the enhanced parser previously fabricated a
CompressionStatistics with algorithm: "unknown" and all-zero metrics).
metadata: HashMap<String, String>Additional metadata
serialization_header_columns: Vec<ColumnInfo>SerializationHeader columns (Issue #163)
Column definitions parsed from SerializationHeader embedded in nb-format Statistics.db files. Used for schema extraction in V5CompressedLegacy format. Empty if SerializationHeader not found in Statistics.db.
serialization_header_partition_keys: Vec<ColumnInfo>Partition key definitions extracted from SerializationHeader (Issue #195)
serialization_header_clustering_keys: Vec<ColumnInfo>Clustering key definitions extracted from SerializationHeader (Issue #195)
tombstone_drop_times: Vec<(i64, u64)>Estimated tombstone-drop-times histogram as (point, count) pairs,
decoded best-effort from the STATS component (Issue #1073). Empty when
the SSTable carries no tombstones or the histogram could not be decoded.
Trait Implementations§
Source§impl Clone for SSTableStatistics
impl Clone for SSTableStatistics
Source§fn clone(&self) -> SSTableStatistics
fn clone(&self) -> SSTableStatistics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more