pub struct ColumnStats {
pub distinct_count: u64,
pub null_count: u64,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
}Expand description
Statistics for a column.
Fields§
§distinct_count: u64Number of distinct values.
null_count: u64Number of null values.
min_value: Option<f64>Minimum value (if orderable).
max_value: Option<f64>Maximum value (if orderable).
Implementations§
Source§impl ColumnStats
impl ColumnStats
Sourcepub fn with_nulls(self, null_count: u64) -> Self
pub fn with_nulls(self, null_count: u64) -> Self
Sets the null count.
Sourcepub fn with_range(self, min: f64, max: f64) -> Self
pub fn with_range(self, min: f64, max: f64) -> Self
Sets the min/max range.
Trait Implementations§
Source§impl Clone for ColumnStats
impl Clone for ColumnStats
Source§fn clone(&self) -> ColumnStats
fn clone(&self) -> ColumnStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColumnStats
impl RefUnwindSafe for ColumnStats
impl Send for ColumnStats
impl Sync for ColumnStats
impl Unpin for ColumnStats
impl UnwindSafe for ColumnStats
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
Mutably borrows from an owned value. Read more