pub struct ParquetStatistics {
pub max: Option<Vec<u8>>,
pub min: Option<Vec<u8>>,
pub null_count: Option<i64>,
pub distinct_count: Option<i64>,
pub max_value: Option<Vec<u8>>,
pub min_value: Option<Vec<u8>>,
pub is_max_value_exact: Option<bool>,
pub is_min_value_exact: Option<bool>,
}
Expand description
Statistics per row group and per page All fields are optional.
Fields§
§max: Option<Vec<u8>>
DEPRECATED: min and max value of the column. Use min_value and max_value.
Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix.
These fields encode min and max values determined by signed comparison only. New files should use the correct order for a column’s logical type and store the values in the min_value and max_value fields.
To support older readers, these may be set when the column order is signed.
min: Option<Vec<u8>>
§null_count: Option<i64>
Count of null values in the column.
Writers SHOULD always write this field even if it is zero (i.e. no null value) or the column is not nullable. Readers MUST distinguish between null_count not being present and null_count == 0. If null_count is not present, readers MUST NOT assume null_count == 0.
distinct_count: Option<i64>
count of distinct values occurring
max_value: Option<Vec<u8>>
Lower and upper bound values for the column, determined by its ColumnOrder.
These may be the actual minimum and maximum values found on a page or column chunk, but can also be (more compact) values that do not exist on a page or column chunk. For example, instead of storing “Blart Versenwald III”, a writer may set min_value=“B”, max_value=“C”. Such more compact values must still be valid values within the column’s logical type.
Values are encoded using PLAIN encoding, except that variable-length byte arrays do not include a length prefix.
min_value: Option<Vec<u8>>
§is_max_value_exact: Option<bool>
If true, max_value is the actual maximum value for a column
is_min_value_exact: Option<bool>
If true, min_value is the actual minimum value for a column
Implementations§
Source§impl Statistics
impl Statistics
pub fn new<F1, F2, F3, F4, F5, F6, F7, F8>( max: F1, min: F2, null_count: F3, distinct_count: F4, max_value: F5, min_value: F6, is_max_value_exact: F7, is_min_value_exact: F8, ) -> Statistics
pub fn read_from_in_protocol<T>(i_prot: &mut T) -> Result<Statistics, Error>where
T: TInputProtocol,
pub fn write_to_out_protocol<T>(&self, o_prot: &mut T) -> Result<usize, Error>where
T: TOutputProtocol,
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Statistics
impl Debug for Statistics
Source§impl Hash for Statistics
impl Hash for Statistics
Source§impl Ord for Statistics
impl Ord for Statistics
Source§fn cmp(&self, other: &Statistics) -> Ordering
fn cmp(&self, other: &Statistics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for Statistics
impl PartialEq for Statistics
Source§impl PartialOrd for Statistics
impl PartialOrd for Statistics
Source§impl ReadThrift for Statistics
impl ReadThrift for Statistics
fn read_from_in_protocol<T>(i_prot: &mut T) -> Result<Statistics, Error>where
T: TInputProtocol,
impl Eq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more