pub struct ValueHintBindingAccumulator { /* private fields */ }Expand description
Accumulates value-driven hint evidence while an engine scans the full data.
The number of configured hints bounds memory use; no cell values are kept.
Implementations§
Source§impl ValueHintBindingAccumulator
impl ValueHintBindingAccumulator
pub fn new(hints: &SemanticHints) -> Self
Sourcepub fn observe(&mut self, column: &str, value: &str)
pub fn observe(&mut self, column: &str, value: &str)
Observe one cell using the same null and match predicates as the quality calculators and their sample-based binding evidence.
Sourcepub fn bindings<'a>(
&self,
column_names: impl IntoIterator<Item = &'a str>,
) -> Vec<SemanticHintBinding>
pub fn bindings<'a>( &self, column_names: impl IntoIterator<Item = &'a str>, ) -> Vec<SemanticHintBinding>
Return exact evidence for hints whose columns exist in the source. Unknown names remain the schema validator’s responsibility.
pub fn merge(&mut self, other: &Self)
Trait Implementations§
Source§impl Clone for ValueHintBindingAccumulator
impl Clone for ValueHintBindingAccumulator
Source§fn clone(&self) -> ValueHintBindingAccumulator
fn clone(&self) -> ValueHintBindingAccumulator
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 ValueHintBindingAccumulator
impl Debug for ValueHintBindingAccumulator
Source§impl Default for ValueHintBindingAccumulator
impl Default for ValueHintBindingAccumulator
Source§fn default() -> ValueHintBindingAccumulator
fn default() -> ValueHintBindingAccumulator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValueHintBindingAccumulator
impl RefUnwindSafe for ValueHintBindingAccumulator
impl Send for ValueHintBindingAccumulator
impl Sync for ValueHintBindingAccumulator
impl Unpin for ValueHintBindingAccumulator
impl UnsafeUnpin for ValueHintBindingAccumulator
impl UnwindSafe for ValueHintBindingAccumulator
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