pub struct ColumnStatistics {
pub null_count: Precision<usize>,
pub max_value: Precision<ScalarValue>,
pub min_value: Precision<ScalarValue>,
pub distinct_count: Precision<usize>,
}
Expand description
Statistics for a column within a relation
Fields§
§null_count: Precision<usize>
Number of null values on column
max_value: Precision<ScalarValue>
Maximum value of column
min_value: Precision<ScalarValue>
Minimum value of column
distinct_count: Precision<usize>
Number of distinct values
Implementations§
Source§impl ColumnStatistics
impl ColumnStatistics
Sourcepub fn is_singleton(&self) -> bool
pub fn is_singleton(&self) -> bool
Column contains a single non null value (e.g constant).
Sourcepub fn new_unknown() -> Self
pub fn new_unknown() -> Self
Returns a ColumnStatistics
instance having all Precision::Absent
parameters.
Sourcepub fn to_inexact(self) -> Self
pub fn to_inexact(self) -> Self
If the exactness of a ColumnStatistics
instance is lost, this
function relaxes the exactness of all information by converting them
Precision::Inexact
.
Trait Implementations§
Source§impl Clone for ColumnStatistics
impl Clone for ColumnStatistics
Source§fn clone(&self) -> ColumnStatistics
fn clone(&self) -> ColumnStatistics
Returns a copy 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 Default for ColumnStatistics
impl Default for ColumnStatistics
Source§fn default() -> ColumnStatistics
fn default() -> ColumnStatistics
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColumnStatistics
impl PartialEq for ColumnStatistics
impl Eq for ColumnStatistics
impl StructuralPartialEq for ColumnStatistics
Auto Trait Implementations§
impl Freeze for ColumnStatistics
impl !RefUnwindSafe for ColumnStatistics
impl Send for ColumnStatistics
impl Sync for ColumnStatistics
impl Unpin 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.