Module parquet::file::statistics[][src]

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:

use parquet::file::statistics::Statistics;

let stats = Statistics::int32(Some(1), Some(10), None, 3, true);
assert_eq!(stats.null_count(), 3);
assert!(stats.has_min_max_set());
assert!(stats.is_min_max_deprecated());

match stats {
    Statistics::Int32(ref typed) => {
        assert_eq!(*typed.min(), 1);
        assert_eq!(*typed.max(), 10);
    }
    _ => {}
}

Structs

TypedStatistics

Typed implementation for Statistics.

Enums

Statistics

Statistics for a column chunk and data page.

Functions

from_thrift

Converts Thrift definition into Statistics.

to_thrift