pub struct ColumnStats {
pub distinct_count: u64,
pub null_count: u64,
pub min_value: Option<Value>,
pub max_value: Option<Value>,
pub row_count: u64,
pub histogram: Vec<Value>,
pub mcv_values: Vec<Value>,
pub mcv_frequencies: Vec<f64>,
}Fields§
§distinct_count: u64§null_count: u64§min_value: Option<Value>§max_value: Option<Value>§row_count: u64§histogram: Vec<Value>Equi-depth histogram bucket boundaries, sorted ascending.
b+1 boundaries describe b buckets.
mcv_values: Vec<Value>Most-common values, descending by frequency.
mcv_frequencies: Vec<f64>Implementations§
Source§impl ColumnStats
impl ColumnStats
Sourcepub fn equality_selectivity(&self) -> f64
pub fn equality_selectivity(&self) -> f64
Default selectivity of an equality predicate over this column.
pub fn non_null_fraction(&self) -> f64
Sourcepub fn equality_selectivity_for(&self, value: &Value) -> f64
pub fn equality_selectivity_for(&self, value: &Value) -> f64
An equality constant outside the MCV list shares only its remaining probability mass.
pub fn matches_mcv(&self, value: &Value) -> Option<f64>
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnStats
impl Debug for ColumnStats
Source§impl Default for ColumnStats
impl Default for ColumnStats
Source§fn default() -> ColumnStats
fn default() -> ColumnStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnStats
impl RefUnwindSafe for ColumnStats
impl Send for ColumnStats
impl Sync for ColumnStats
impl Unpin for ColumnStats
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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