pub struct ColumnEvidence {Show 15 fields
pub name: String,
pub total_count: u64,
pub null_count: u64,
pub null_rate: f64,
pub distinct_estimate: f64,
pub sample_values: Vec<String>,
pub truncated_sample_count: u64,
pub boolean: Option<BooleanEvidence>,
pub numeric: Option<NumericEvidence>,
pub decimal_scale: Option<u8>,
pub string_shape: Option<StringShapeEvidence>,
pub top_k: Vec<TopKEntry>,
pub timestamp_range: Option<TimestampRangeEvidence>,
pub json_valid_rate: Option<f64>,
pub confidence: f64,
}Expand description
Evidence gathered for a single column. Only the sub-summaries relevant to
the observed value shapes are populated; the rest stay None.
Fields§
§name: StringColumn name (filled in by the profiler; empty when produced directly
from a bare crate::profile::ColumnSketches).
total_count: u64Total values observed, including nulls.
null_count: u64How many observed values were SQL NULL.
null_rate: f64null_count / total_count, or 0.0 when nothing was observed.
distinct_estimate: f64HyperLogLog estimate of the number of distinct non-null values.
sample_values: Vec<String>A small, budget-bounded sample of retained value renderings.
truncated_sample_count: u64How many retained samples were byte-truncated to fit the ceiling.
boolean: Option<BooleanEvidence>Present when boolean values were observed.
numeric: Option<NumericEvidence>Present when numeric (integer/decimal) values were observed.
decimal_scale: Option<u8>Maximum decimal scale observed, when decimals were observed.
string_shape: Option<StringShapeEvidence>Present when text values were observed.
top_k: Vec<TopKEntry>Heavy hitters (approximate top-k), most frequent first.
timestamp_range: Option<TimestampRangeEvidence>Present when timestamp values were observed.
json_valid_rate: Option<f64>Fraction of observed JSON values that parsed as valid JSON.
confidence: f64Confidence in this column’s evidence, in [0, 1].
Trait Implementations§
Source§impl Clone for ColumnEvidence
impl Clone for ColumnEvidence
Source§fn clone(&self) -> ColumnEvidence
fn clone(&self) -> ColumnEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColumnEvidence
impl Debug for ColumnEvidence
Source§impl<'de> Deserialize<'de> for ColumnEvidence
impl<'de> Deserialize<'de> for ColumnEvidence
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>,
Source§impl PartialEq for ColumnEvidence
impl PartialEq for ColumnEvidence
Source§impl Serialize for ColumnEvidence
impl Serialize for ColumnEvidence
impl StructuralPartialEq for ColumnEvidence
Auto Trait Implementations§
impl Freeze for ColumnEvidence
impl RefUnwindSafe for ColumnEvidence
impl Send for ColumnEvidence
impl Sync for ColumnEvidence
impl Unpin for ColumnEvidence
impl UnsafeUnpin for ColumnEvidence
impl UnwindSafe for ColumnEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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