pub struct ColumnStatistics {
pub name: String,
pub distinct_count: usize,
pub null_count: usize,
pub min_value: Option<Literal>,
pub max_value: Option<Literal>,
}Expand description
Column statistics.
Fields§
§name: StringColumn name.
distinct_count: usizeNumber of distinct values.
null_count: usizeNumber of null values.
min_value: Option<Literal>Minimum value (if available).
max_value: Option<Literal>Maximum value (if available).
Implementations§
Source§impl ColumnStatistics
impl ColumnStatistics
Sourcepub fn new(name: String, distinct_count: usize, null_count: usize) -> Self
pub fn new(name: String, distinct_count: usize, null_count: usize) -> Self
Create new column statistics.
Sourcepub fn equality_selectivity(&self, _total_rows: usize) -> f64
pub fn equality_selectivity(&self, _total_rows: usize) -> f64
Selectivity for equality predicate.
Sourcepub fn range_selectivity(&self, low: &Literal, high: &Literal) -> f64
pub fn range_selectivity(&self, low: &Literal, high: &Literal) -> f64
Selectivity for range predicate.
Trait Implementations§
Source§impl Clone for ColumnStatistics
impl Clone for ColumnStatistics
Source§fn clone(&self) -> ColumnStatistics
fn clone(&self) -> ColumnStatistics
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 moreSource§impl Debug for ColumnStatistics
impl Debug for ColumnStatistics
Source§impl<'de> Deserialize<'de> for ColumnStatistics
impl<'de> Deserialize<'de> for ColumnStatistics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColumnStatistics
impl RefUnwindSafe for ColumnStatistics
impl Send for ColumnStatistics
impl Sync for ColumnStatistics
impl Unpin for ColumnStatistics
impl UnsafeUnpin for ColumnStatistics
impl UnwindSafe for ColumnStatistics
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,
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