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>,
}
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 value in the column
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
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 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
fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<Statistics>
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)