pub struct Statistics {
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>,
}format module is no longer maintained, and will be removed in 59.0.0Expand description
Statistics per row group and per page All fields are optional.
Fieldsยง
ยงmax: Option<Vec<u8>>format module is no longer maintained, and will be removed in 59.0.0DEPRECATED: 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>>format module is no longer maintained, and will be removed in 59.0.0null_count: Option<i64>format module is no longer maintained, and will be removed in 59.0.0Count 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>format module is no longer maintained, and will be removed in 59.0.0count of distinct values occurring
max_value: Option<Vec<u8>>format module is no longer maintained, and will be removed in 59.0.0Lower 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>>format module is no longer maintained, and will be removed in 59.0.0is_max_value_exact: Option<bool>format module is no longer maintained, and will be removed in 59.0.0If true, max_value is the actual maximum value for a column
is_min_value_exact: Option<bool>format module is no longer maintained, and will be removed in 59.0.0If 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
format module is no longer maintained, and will be removed in 59.0.0Trait 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 Default for Statistics
impl Default for Statistics
Sourceยงfn default() -> Statistics
fn default() -> 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 TSerializable for Statistics
impl TSerializable for Statistics
Sourceยงfn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T,
) -> Result<Statistics>
fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<Statistics>
Sourceยงfn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T,
) -> Result<()>
fn write_to_out_protocol<T: TOutputProtocol>( &self, o_prot: &mut T, ) -> Result<()>
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,
ยงimpl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยง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