mz_persist_types::stats

Struct OptionStats

Source
pub struct OptionStats<T> {
    pub some: T,
    pub none: usize,
}
Expand description

Statistics about a column of some optional type.

Fields§

§some: T

Statistics about the Some values in the column.

§none: usize

The count of None values in the column.

Trait Implementations§

Source§

impl ColumnStats for OptionStats<BytesStats>

Source§

type Ref<'a> = Option<&'a [u8]>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<NoneStats>

Source§

type Ref<'a> = Option<()>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<String>>

Source§

type Ref<'a> = Option<&'a str>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<bool>>

Source§

type Ref<'a> = Option<bool>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<f32>>

Source§

type Ref<'a> = Option<f32>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<f64>>

Source§

type Ref<'a> = Option<f64>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<i16>>

Source§

type Ref<'a> = Option<i16>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<i32>>

Source§

type Ref<'a> = Option<i32>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<i64>>

Source§

type Ref<'a> = Option<i64>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<i8>>

Source§

type Ref<'a> = Option<i8>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<u16>>

Source§

type Ref<'a> = Option<u16>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<u32>>

Source§

type Ref<'a> = Option<u32>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<u64>>

Source§

type Ref<'a> = Option<u64>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<PrimitiveStats<u8>>

Source§

type Ref<'a> = Option<u8>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl ColumnStats for OptionStats<StructStats>

Source§

type Ref<'a> = Option<()>

Type returned as the stat bounds.
Source§

fn lower<'a>(&'a self) -> Option<Self::Ref<'a>>

An inclusive lower bound on the data contained in the column, if known. Read more
Source§

fn upper<'a>(&'a self) -> Option<Self::Ref<'a>>

Same as Self::lower but an (also inclusive) upper bound.
Source§

fn none_count(&self) -> usize

The number of Nones if this column is optional or 0 if it isn’t.
Source§

impl<I, T> ColumnarStatsBuilder<Option<I>> for OptionStats<T>

Source§

type ArrowColumn = <T as ColumnarStatsBuilder<I>>::ArrowColumn

Type of arrow column these statistics can be derived from.
Source§

type FinishedStats = ColumnarStats

The type of statistics the collector finalizes into.
Source§

fn from_column(col: &Self::ArrowColumn) -> Self
where Self: Sized,

Derive statistics from a column of data.
Source§

fn finish(self) -> Self::FinishedStats
where Self::FinishedStats: Sized,

Finish this collector returning the final aggregated statistics.
Source§

fn from_column_dyn(col: &dyn Array) -> Option<Self>
where Self: Sized,

Derive statistics from an opaque column of data. Read more
Source§

impl<T: DynStats> Debug for OptionStats<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: DynStats> DynStats for OptionStats<T>

Source§

fn debug_json(&self) -> Value

Formats these statistics for use in INSPECT SHARD and debugging.
Source§

fn into_columnar_stats(self) -> ColumnarStats

Return self as ColumnarStats.
Source§

fn type_name(&self) -> &'static str

Returns the name of the erased type for use in error messages.

Auto Trait Implementations§

§

impl<T> Freeze for OptionStats<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for OptionStats<T>
where T: RefUnwindSafe,

§

impl<T> Send for OptionStats<T>
where T: Send,

§

impl<T> Sync for OptionStats<T>
where T: Sync,

§

impl<T> Unpin for OptionStats<T>
where T: Unpin,

§

impl<T> UnwindSafe for OptionStats<T>
where T: UnwindSafe,

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, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

fn cast_into(self) -> U

Performs the cast.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize = _

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, R> ProtoType<R> for P
where R: RustType<P>,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,