Expand description
Contains definitions for working with Parquet statistics.
Though some common methods are available on enum, use pattern match to extract actual min and max values from statistics, see below:
ยงExamples
use parquet::file::statistics::Statistics;
let stats = Statistics::int32(Some(1), Some(10), None, Some(3), true);
assert_eq!(stats.null_count_opt(), Some(3));
assert!(stats.is_min_max_deprecated());
assert!(stats.min_is_exact());
assert!(stats.max_is_exact());
match stats {
Statistics::Int32(ref typed) => {
assert_eq!(typed.min_opt(), Some(&1));
assert_eq!(typed.max_opt(), Some(&10));
}
_ => {}
}
Modulesยง
- private ๐
Macrosยง
- statistics_
enum_ ๐func - statistics_
new_ ๐func - Macro to generate methods to create Statistics.
Structsยง
- Value
Statistics - Typed statistics for one column chunk
Enumsยง
- Statistics
- Strongly typed statistics for a column chunk within a row group.
Functionsยง
- from_
thrift_ ๐page_ stats - Converts Thrift definition into
Statistics
. - page_
stats_ ๐to_ thrift - Convert Statistics into Thrift definition.
Type Aliasesยง
- Typed
Statistics - Typed implementation for
Statistics
.