pub struct ColumnStatistics {
pub name: String,
pub column_type: String,
pub value_count: u64,
pub null_count: u64,
pub min_value: Option<Vec<u8>>,
pub max_value: Option<Vec<u8>>,
pub avg_size: f64,
pub cardinality: u64,
pub value_histogram: Vec<ValueFrequency>,
pub has_index: bool,
}Expand description
Per-column statistics for query optimization
Fields§
§name: StringColumn name
column_type: StringColumn type (CQL type)
value_count: u64Number of non-null values
null_count: u64Number of null values
min_value: Option<Vec<u8>>Minimum value (serialized as bytes)
max_value: Option<Vec<u8>>Maximum value (serialized as bytes)
avg_size: f64Average serialized size in bytes
cardinality: u64Estimated cardinality (distinct values)
value_histogram: Vec<ValueFrequency>Value frequency histogram for common values
has_index: boolWhether this column has an index
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 (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 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§
impl<T> Allocation for T
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