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§

source

fn debug_json(&self) -> Value

Formats these statistics for use in INSPECT SHARD and debugging.

source

fn into_columnar_stats(self) -> ColumnarStats

Return self as ColumnarStats.

Provided Methods§

source

fn type_name(&self) -> &'static str

Returns the name of the erased type for use in error messages.

Implementors§