Struct mz_persist_types::dyn_col::DynColumnRef
source · pub struct DynColumnRef(DataType, Arc<dyn Any + Send + Sync>);
Expand description
A type-erased crate::columnar::Data::Col.
Tuple Fields§
§0: DataType
§1: Arc<dyn Any + Send + Sync>
Implementations§
source§impl DynColumnRef
impl DynColumnRef
fn new<T: Data>(col: T::Col) -> Self
pub(crate) fn typ(&self) -> &DataType
sourcepub fn downcast<T: Data>(self) -> Result<Arc<T::Col>, String>
pub fn downcast<T: Data>(self) -> Result<Arc<T::Col>, String>
Returns the inner value if it is a column of type T
, or an Err if it isn’t.
sourcepub fn downcast_ref<T: Data>(&self) -> Result<&T::Col, String>
pub fn downcast_ref<T: Data>(&self) -> Result<&T::Col, String>
Returns a typed, shared reference to the inner value if it is a column
of type T
, or an Err if it isn’t.
sourcepub fn stats_default(&self, validity: ValidityRef) -> ColumnarStats
pub fn stats_default(&self, validity: ValidityRef) -> ColumnarStats
Computes statistics on this column using the default implementation of
T::Stats::From
.
pub(crate) fn from_arrow( data_type: &DataType, array: &dyn Array, ) -> Result<Self, String>
pub(crate) fn to_arrow(&self) -> (Arc<dyn Array>, bool)
Trait Implementations§
source§impl Clone for DynColumnRef
impl Clone for DynColumnRef
source§fn clone(&self) -> DynColumnRef
fn clone(&self) -> DynColumnRef
Returns a copy 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 moresource§impl Debug for DynColumnRef
impl Debug for DynColumnRef
source§impl From<DynColumnMut> for DynColumnRef
impl From<DynColumnMut> for DynColumnRef
source§fn from(value: DynColumnMut) -> Self
fn from(value: DynColumnMut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynColumnRef
impl !RefUnwindSafe for DynColumnRef
impl Send for DynColumnRef
impl Sync for DynColumnRef
impl Unpin for DynColumnRef
impl !UnwindSafe for DynColumnRef
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
Wrap the input message
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>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.