Trait mz_persist_types::stats::DynStats
source · pub trait DynStats:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn debug_json(&self) -> Value;
fn into_columnar_stats(self) -> ColumnarStats;
// Provided method
fn type_name(&self) -> &'static str { ... }
}
Expand description
Type that can be used to represent some ColumnStats
.
This is a separate trait than ColumnStats
because its implementations
generally don’t care about what kind of stats they contain, whereas
ColumnStats
is generic over the inner type of statistics.
Required Methods§
sourcefn debug_json(&self) -> Value
fn debug_json(&self) -> Value
Formats these statistics for use in INSPECT SHARD
and debugging.
sourcefn into_columnar_stats(self) -> ColumnarStats
fn into_columnar_stats(self) -> ColumnarStats
Return self
as ColumnarStats
.