pub struct SemanticHintBinding {
pub column: String,
pub kind: SemanticHintKind,
pub checked_values: usize,
pub matched_values: usize,
pub exact: bool,
}Expand description
Per-column evidence of whether a semantic hint actually bound to any value.
A hint expresses user domain knowledge about a column; this records how much
of the column that knowledge matched. matched_values counts the values of
the kind the hint expects (numeric for positive, date-parseable for
temporal, every non-null value for identifier, which coerces the column).
exact distinguishes a full-data count from a sampled one: a hint that
matched nothing (matched_values == 0) is only proven inert when the count
covers every row. A sampled zero is recorded but never treated as an error,
because absence in a sample is not proof of absence in the data.
Fields§
§column: StringThe hinted column this evidence is for.
kind: SemanticHintKindWhich hint list named the column.
checked_values: usizeNon-null values considered.
matched_values: usizeValues that matched the hint’s expected kind.
exact: boolWhether the counts cover every row (true) or a sample (false).
Implementations§
Source§impl SemanticHintBinding
impl SemanticHintBinding
Sourcepub fn is_proven_inert(&self) -> bool
pub fn is_proven_inert(&self) -> bool
Whether this hint is proven inert: it was assessed over the full data
(exact), had values to consider (checked_values > 0), yet matched
none of them.
Trait Implementations§
Source§impl Clone for SemanticHintBinding
impl Clone for SemanticHintBinding
Source§fn clone(&self) -> SemanticHintBinding
fn clone(&self) -> SemanticHintBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more