Skip to main content

ColumnProfileInput

Struct ColumnProfileInput 

Source
pub struct ColumnProfileInput<'a> {
    pub name: String,
    pub data_type: DataType,
    pub total_count: usize,
    pub null_count: usize,
    pub unique_count: Option<usize>,
    pub sample_values: &'a [String],
    pub text_lengths: Option<TextLengths>,
    pub boolean_counts: Option<(usize, usize)>,
    pub skip_statistics: bool,
    pub skip_patterns: bool,
    pub locale: Option<&'a str>,
}
Expand description

Inputs that every engine can provide for centralized profile construction.

Fields§

§name: String§data_type: DataType§total_count: usize§null_count: usize§unique_count: Option<usize>§sample_values: &'a [String]§text_lengths: Option<TextLengths>

Pre-computed text lengths for engines that track them incrementally. When Some, text stats are built from these instead of re-scanning samples.

§boolean_counts: Option<(usize, usize)>

Pre-computed boolean counts (true_count, false_count) for boolean columns.

§skip_statistics: bool

When true, skip statistics computation (produce ColumnStats::None).

§skip_patterns: bool

When true, skip pattern detection (produce empty patterns vec).

§locale: Option<&'a str>

Optional locale for pattern detection (e.g. “IT”, “US”).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V