Module stats

Source
Expand description

Aggregate statistics about data stored in persist.

Re-exports§

pub use bytes::AtomicBytesStats;
pub use bytes::BytesStats;
pub use bytes::FixedSizeBytesStats;
pub use bytes::FixedSizeBytesStatsKind;
pub use json::JsonMapElementStats;
pub use json::JsonStats;
pub use primitive::PrimitiveStats;
pub use primitive::PrimitiveStatsVariants;
pub use primitive::TRUNCATE_LEN;
pub use primitive::TruncateBound;
pub use primitive::truncate_bytes;
pub use primitive::truncate_string;
pub use structured::StructStats;

Modules§

bytes
json
primitive
proto_bytes_stats
Nested message and enum types in ProtoBytesStats.
proto_dyn_stats
Nested message and enum types in ProtoDynStats.
proto_fixed_size_bytes_stats
Nested message and enum types in ProtoFixedSizeBytesStats.
proto_json_stats
Nested message and enum types in ProtoJsonStats.
proto_primitive_stats
Nested message and enum types in ProtoPrimitiveStats.
structured

Macros§

primitive_stats 🔒
We collect stats for all primitive types in exactly the same way. This macro de-duplicates some of that logic.

Structs§

ColumnNullStats
Statistics about the null values in a column.
ColumnarStats
Statistics for a single column of data.
NoneStats
Empty set of statistics.
OptionStats
Statistics about a column of some optional type.
PartStats
Aggregate statistics about data contained in a Part.
PartStatsMetrics
Metrics for PartStats.
ProtoAtomicBytesStats
ProtoBytesStats
ProtoDynStats
ProtoFixedSizeBytesStats
ProtoJsonMapElementStats
ProtoJsonMapStats
ProtoJsonStats
ProtoOptionStats
ProtoPrimitiveBytesStats
ProtoPrimitiveStats
ProtoStructStats

Enums§

ColumnStatKinds
All of the kinds of statistics that we support.

Traits§

ColumnStats
Aggregate statistics about a column of type T.
ColumnarStatsBuilder
A type that can incrementally collect stats from a sequence of values.
DynStats
Type that can be used to represent some ColumnStats.
TrimStats
Trim, possibly in a lossy way, statistics to reduce the serialization costs.

Functions§

any_columnar_stats 🔒
Returns a Strategy that generates arbitrary ColumnarStats.
trim_to_budget
Trims the included column status until they fit within a budget.
trim_to_budget_jsonb 🔒
trim_to_budget_struct 🔒
Recursively trims cols in the struct, greatest-size first, keeping force kept cols and ancestors of force kept cols.