Module statistics

Module statistics 

Source
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ยง

ValueStatistics
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ยง

TypedStatistics
Typed implementation for Statistics.