Struct mz_persist_types::dyn_struct::DynStructCfg
source · pub struct DynStructCfg {
pub(crate) cols: Arc<Vec<(String, DataType, StatsFn)>>,
}
Expand description
The schema of a “dynamic” columnar struct.
Here, dynamic is used to mean that, unlike most Data impls, the columnar schema of this type is not inferrable purely from the type. Instead, it needs supplementary crate::columnar::ColumnCfg.
This exists because, among other reasons, mz’s Row
type does not declare
the schema at the type level (as opposed to something like Row(u64, i32)
).
TODO(parkmycar): Remove this and all DynStruct*
friends once
crate::columnar::Schema2
is fully flushed out.
Fields§
§cols: Arc<Vec<(String, DataType, StatsFn)>>
Trait Implementations§
source§impl Clone for DynStructCfg
impl Clone for DynStructCfg
source§fn clone(&self) -> DynStructCfg
fn clone(&self) -> DynStructCfg
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 ColumnCfg<DynStruct> for DynStructCfg
impl ColumnCfg<DynStruct> for DynStructCfg
source§impl ColumnMut<DynStructCfg> for DynStructMut
impl ColumnMut<DynStructCfg> for DynStructMut
source§fn new(cfg: &DynStructCfg) -> Self
fn new(cfg: &DynStructCfg) -> Self
Construct an empty instance of this type with the given
configuration.
source§fn cfg(&self) -> &DynStructCfg
fn cfg(&self) -> &DynStructCfg
Returns the super::ColumnCfg for this column.
source§impl ColumnRef<DynStructCfg> for DynStructCol
impl ColumnRef<DynStructCfg> for DynStructCol
source§fn cfg(&self) -> &DynStructCfg
fn cfg(&self) -> &DynStructCfg
Returns the super::ColumnCfg for this column.
source§fn from_arrow(cfg: &DynStructCfg, array: &dyn Array) -> Result<Self, String>
fn from_arrow(cfg: &DynStructCfg, array: &dyn Array) -> Result<Self, String>
Constructs the column from an
arrow
Array.source§impl Debug for DynStructCfg
impl Debug for DynStructCfg
source§impl PartialEq for DynStructCfg
impl PartialEq for DynStructCfg
impl StructuralPartialEq for DynStructCfg
Auto Trait Implementations§
impl Freeze for DynStructCfg
impl RefUnwindSafe for DynStructCfg
impl Send for DynStructCfg
impl Sync for DynStructCfg
impl Unpin for DynStructCfg
impl UnwindSafe for DynStructCfg
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
.