pub struct ColumnarStats {
pub nulls: Option<ColumnNullStats>,
pub values: ColumnStatKinds,
}
Expand description
Statistics for a single column of data.
Fields§
§nulls: Option<ColumnNullStats>
Expected to be None
if the associated column is non-nullable.
values: ColumnStatKinds
Statistics on the values of the column.
Implementations§
Source§impl ColumnarStats
impl ColumnarStats
Sourcepub fn one_column_struct(len: usize, col: ColumnStatKinds) -> StructStats
pub fn one_column_struct(len: usize, col: ColumnStatKinds) -> StructStats
Returns a [StructStats]
with a single non-nullable column.
Sourcepub fn as_non_null_values(&self) -> Option<&ColumnStatKinds>
pub fn as_non_null_values(&self) -> Option<&ColumnStatKinds>
Returns the inner ColumnStatKinds
if nulls
is None
.
Sourcepub fn into_non_null_values(self) -> Option<ColumnStatKinds>
pub fn into_non_null_values(self) -> Option<ColumnStatKinds>
Returns the inner ColumnStatKinds
if nulls
is None
.
Sourcepub fn into_struct_stats(self) -> Option<StructStats>
pub fn into_struct_stats(self) -> Option<StructStats>
Returns the inner StructStats
if nulls
is None
and values
is ColumnStatKinds::Struct
.
Sourcefn try_as_stats<'a, T, F>(&'a self, map: F) -> Result<T, Error>
fn try_as_stats<'a, T, F>(&'a self, map: F) -> Result<T, Error>
Helper method to “downcast” to stats of type T
.
Sourcefn try_as_option_stats<'a, T, F>(
&'a self,
map: F,
) -> Result<OptionStats<T>, Error>
fn try_as_option_stats<'a, T, F>( &'a self, map: F, ) -> Result<OptionStats<T>, Error>
Helper method to “downcast” OptionStats<T>
.
Sourcepub fn try_as_optional_struct(&self) -> Result<OptionStats<&StructStats>, Error>
pub fn try_as_optional_struct(&self) -> Result<OptionStats<&StructStats>, Error>
Tries to “downcast” this instance of ColumnarStats
to an OptionStats<StructStats>
if the inner statistics are nullable and for a structured column.
Sourcepub fn try_as_optional_bytes(&self) -> Result<OptionStats<&BytesStats>, Error>
pub fn try_as_optional_bytes(&self) -> Result<OptionStats<&BytesStats>, Error>
Tries to “downcast” this instance of ColumnarStats
to an OptionStats<BytesStats>
if the inner statistics are nullable and for a column of bytes.
Sourcepub fn try_as_string(&self) -> Result<&PrimitiveStats<String>, Error>
pub fn try_as_string(&self) -> Result<&PrimitiveStats<String>, Error>
Tries to “downcast” this instance of ColumnarStats
to a PrimitiveStats<String>
if the inner statistics are nullable and for a structured column.
Trait Implementations§
Source§impl Clone for ColumnarStats
impl Clone for ColumnarStats
Source§fn clone(&self) -> ColumnarStats
fn clone(&self) -> ColumnarStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ColumnarStats
impl Debug for ColumnarStats
Source§impl DynStats for ColumnarStats
impl DynStats for ColumnarStats
Source§fn debug_json(&self) -> Value
fn debug_json(&self) -> Value
INSPECT SHARD
and debugging.Source§fn into_columnar_stats(self) -> ColumnarStats
fn into_columnar_stats(self) -> ColumnarStats
self
as ColumnarStats
.Source§impl RustType<ProtoDynStats> for ColumnarStats
impl RustType<ProtoDynStats> for ColumnarStats
Source§fn into_proto(&self) -> ProtoDynStats
fn into_proto(&self) -> ProtoDynStats
Self
into a Proto
value.Source§fn from_proto(proto: ProtoDynStats) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoDynStats) -> Result<Self, TryFromProtoError>
Source§fn into_proto_owned(self) -> Proto
fn into_proto_owned(self) -> Proto
Self::into_proto
that types can
optionally implement, otherwise, the default implementation
delegates to Self::into_proto
.Auto Trait Implementations§
impl Freeze for ColumnarStats
impl RefUnwindSafe for ColumnarStats
impl Send for ColumnarStats
impl Sync for ColumnarStats
impl Unpin for ColumnarStats
impl UnwindSafe for ColumnarStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.