Skip to main content

ColumnProfileInput

Struct ColumnProfileInput 

Source
pub struct ColumnProfileInput<'a> {
Show 14 fields pub name: String, pub data_type: DataType, pub total_count: usize, pub null_count: usize, pub unique_count: Option<usize>, pub unique_count_is_approximate: Option<bool>, 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>, pub exact_numeric: Option<ExactNumericAggregates>, pub exact_date_matches: Option<usize>,
}
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>§unique_count_is_approximate: Option<bool>

Whether unique_count is an approximate (HLL) estimate. None mirrors unique_count: None; Some(false) for exact counts; Some(true) once the engine’s cardinality estimator has spilled to its HLL sketch.

§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 patterns: None).

§locale: Option<&'a str>

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

§exact_numeric: Option<ExactNumericAggregates>

Exact aggregates over every numeric value the engine streamed.

When present, these override the sample-derived min, max, mean, std_dev, and variance on numeric columns, so those fields stay exact even when sample_values no longer covers the full stream. None means sample_values is the full data (in-memory sources) or the engine has no exact accumulators for the column.

§exact_date_matches: Option<usize>

Number of values over the full stream accepted by the temporal parser. None means sample_values is the complete in-memory column.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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