pub struct FieldInferenceInfo {
pub inferred_type: RedisType,
pub confidence: f64,
pub samples: usize,
pub valid: usize,
pub nulls: usize,
pub type_candidates: HashMap<String, usize>,
}Expand description
Detailed inference information for a single field.
Fields§
§inferred_type: RedisTypeThe inferred type for this field.
confidence: f64Confidence score from 0.0 to 1.0. 1.0 means all sampled values matched the inferred type.
samples: usizeTotal number of samples for this field.
valid: usizeNumber of samples that successfully parsed as the inferred type.
nulls: usizeNumber of null/missing values.
type_candidates: HashMap<String, usize>Type candidates that were considered, with their match counts.
Implementations§
Source§impl FieldInferenceInfo
impl FieldInferenceInfo
Sourcepub fn is_confident(&self, threshold: f64) -> bool
pub fn is_confident(&self, threshold: f64) -> bool
Check if confidence is above a threshold (default: 0.9).
Sourcepub fn null_ratio(&self) -> f64
pub fn null_ratio(&self) -> f64
Get the percentage of null values.
Trait Implementations§
Source§impl Clone for FieldInferenceInfo
impl Clone for FieldInferenceInfo
Source§fn clone(&self) -> FieldInferenceInfo
fn clone(&self) -> FieldInferenceInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FieldInferenceInfo
impl RefUnwindSafe for FieldInferenceInfo
impl Send for FieldInferenceInfo
impl Sync for FieldInferenceInfo
impl Unpin for FieldInferenceInfo
impl UnwindSafe for FieldInferenceInfo
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§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>
Converts
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>
Converts
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