Enum mz_repr::row::encoding::DatumDecoder

source ·
pub enum DatumDecoder {
Show 34 variants Bool(DataRef<bool>), OptBool(DataRef<Option<bool>>), Int16(DataRef<i16>), OptInt16(DataRef<Option<i16>>), Int32(DataRef<i32>), OptInt32(DataRef<Option<i32>>), Int64(DataRef<i64>), OptInt64(DataRef<Option<i64>>), UInt8(DataRef<u8>), OptUInt8(DataRef<Option<u8>>), UInt16(DataRef<u16>), OptUInt16(DataRef<Option<u16>>), UInt32(DataRef<u32>), OptUInt32(DataRef<Option<u32>>), UInt64(DataRef<u64>), OptUInt64(DataRef<Option<u64>>), Float32(DataRef<f32>), OptFloat32(DataRef<Option<f32>>), Float64(DataRef<f64>), OptFloat64(DataRef<Option<f64>>), Date(DataRef<Date>), OptDate(DataRef<Option<Date>>), Bytes(DataRef<Vec<u8>>), OptBytes(DataRef<Option<Vec<u8>>>), String(DataRef<String>), OptString(DataRef<Option<String>>), Jsonb(DataRef<Jsonb>), OptJsonb(DataRef<Option<Jsonb>>), MzTimestamp(DataRef<Timestamp>), OptMzTimestamp(DataRef<Option<Timestamp>>), Todo(DataRef<ProtoDatumToPersist>), OptTodo(DataRef<NullableProtoDatumToPersist>), TodoNoStats(DataRef<ProtoDatumToPersistNoStats>), OptTodoNoStats(DataRef<NullableProtoDatumToPersistNoStats>),
}
Expand description

A helper for adapting mz’s Datum to persist’s columnar Data.

Variants§

§

Bool(DataRef<bool>)

§

OptBool(DataRef<Option<bool>>)

§

Int16(DataRef<i16>)

§

OptInt16(DataRef<Option<i16>>)

§

Int32(DataRef<i32>)

§

OptInt32(DataRef<Option<i32>>)

§

Int64(DataRef<i64>)

§

OptInt64(DataRef<Option<i64>>)

§

UInt8(DataRef<u8>)

§

OptUInt8(DataRef<Option<u8>>)

§

UInt16(DataRef<u16>)

§

OptUInt16(DataRef<Option<u16>>)

§

UInt32(DataRef<u32>)

§

OptUInt32(DataRef<Option<u32>>)

§

UInt64(DataRef<u64>)

§

OptUInt64(DataRef<Option<u64>>)

§

Float32(DataRef<f32>)

§

OptFloat32(DataRef<Option<f32>>)

§

Float64(DataRef<f64>)

§

OptFloat64(DataRef<Option<f64>>)

§

Date(DataRef<Date>)

§

OptDate(DataRef<Option<Date>>)

§

Bytes(DataRef<Vec<u8>>)

§

OptBytes(DataRef<Option<Vec<u8>>>)

§

String(DataRef<String>)

§

OptString(DataRef<Option<String>>)

§

Jsonb(DataRef<Jsonb>)

§

OptJsonb(DataRef<Option<Jsonb>>)

§

MzTimestamp(DataRef<Timestamp>)

§

OptMzTimestamp(DataRef<Option<Timestamp>>)

§

Todo(DataRef<ProtoDatumToPersist>)

§

OptTodo(DataRef<NullableProtoDatumToPersist>)

§

TodoNoStats(DataRef<ProtoDatumToPersistNoStats>)

§

OptTodoNoStats(DataRef<NullableProtoDatumToPersistNoStats>)

Trait Implementations§

source§

impl DatumDecoderT for DatumDecoder

source§

fn decode( &self, __enum_dispatch_arg_0: usize, __enum_dispatch_arg_1: &mut RowPacker<'_>, )

source§

impl Debug for DatumDecoder

source§

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

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

impl From<DataRef<Date>> for DatumDecoder

source§

fn from(v: DataRef<Date>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Jsonb>> for DatumDecoder

source§

fn from(v: DataRef<Jsonb>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<NullableProtoDatumToPersist>> for DatumDecoder

source§

fn from(v: DataRef<NullableProtoDatumToPersist>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<NullableProtoDatumToPersistNoStats>> for DatumDecoder

source§

fn from(v: DataRef<NullableProtoDatumToPersistNoStats>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<Date>>> for DatumDecoder

source§

fn from(v: DataRef<Option<Date>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<Jsonb>>> for DatumDecoder

source§

fn from(v: DataRef<Option<Jsonb>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<String>>> for DatumDecoder

source§

fn from(v: DataRef<Option<String>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<Timestamp>>> for DatumDecoder

source§

fn from(v: DataRef<Option<Timestamp>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<Vec<u8>>>> for DatumDecoder

source§

fn from(v: DataRef<Option<Vec<u8>>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<bool>>> for DatumDecoder

source§

fn from(v: DataRef<Option<bool>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<f32>>> for DatumDecoder

source§

fn from(v: DataRef<Option<f32>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<f64>>> for DatumDecoder

source§

fn from(v: DataRef<Option<f64>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<i16>>> for DatumDecoder

source§

fn from(v: DataRef<Option<i16>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<i32>>> for DatumDecoder

source§

fn from(v: DataRef<Option<i32>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<i64>>> for DatumDecoder

source§

fn from(v: DataRef<Option<i64>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<u16>>> for DatumDecoder

source§

fn from(v: DataRef<Option<u16>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<u32>>> for DatumDecoder

source§

fn from(v: DataRef<Option<u32>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<u64>>> for DatumDecoder

source§

fn from(v: DataRef<Option<u64>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Option<u8>>> for DatumDecoder

source§

fn from(v: DataRef<Option<u8>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<ProtoDatumToPersist>> for DatumDecoder

source§

fn from(v: DataRef<ProtoDatumToPersist>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<ProtoDatumToPersistNoStats>> for DatumDecoder

source§

fn from(v: DataRef<ProtoDatumToPersistNoStats>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<String>> for DatumDecoder

source§

fn from(v: DataRef<String>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Timestamp>> for DatumDecoder

source§

fn from(v: DataRef<Timestamp>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<Vec<u8>>> for DatumDecoder

source§

fn from(v: DataRef<Vec<u8>>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<bool>> for DatumDecoder

source§

fn from(v: DataRef<bool>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<f32>> for DatumDecoder

source§

fn from(v: DataRef<f32>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<f64>> for DatumDecoder

source§

fn from(v: DataRef<f64>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<i16>> for DatumDecoder

source§

fn from(v: DataRef<i16>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<i32>> for DatumDecoder

source§

fn from(v: DataRef<i32>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<i64>> for DatumDecoder

source§

fn from(v: DataRef<i64>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<u16>> for DatumDecoder

source§

fn from(v: DataRef<u16>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<u32>> for DatumDecoder

source§

fn from(v: DataRef<u32>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<u64>> for DatumDecoder

source§

fn from(v: DataRef<u64>) -> DatumDecoder

Converts to this type from the input type.
source§

impl From<DataRef<u8>> for DatumDecoder

source§

fn from(v: DataRef<u8>) -> DatumDecoder

Converts to this type from the input type.
source§

impl TryInto<DataRef<Date>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Date>, <Self as TryInto<DataRef<Date>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Jsonb>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Jsonb>, <Self as TryInto<DataRef<Jsonb>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<NullableProtoDatumToPersist>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<NullableProtoDatumToPersist>, <Self as TryInto<DataRef<NullableProtoDatumToPersist>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<NullableProtoDatumToPersistNoStats>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<NullableProtoDatumToPersistNoStats>, <Self as TryInto<DataRef<NullableProtoDatumToPersistNoStats>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<Date>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<Date>>, <Self as TryInto<DataRef<Option<Date>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<Jsonb>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<Jsonb>>, <Self as TryInto<DataRef<Option<Jsonb>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<String>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<String>>, <Self as TryInto<DataRef<Option<String>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<Timestamp>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<Timestamp>>, <Self as TryInto<DataRef<Option<Timestamp>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<Vec<u8>>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<Vec<u8>>>, <Self as TryInto<DataRef<Option<Vec<u8>>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<bool>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<bool>>, <Self as TryInto<DataRef<Option<bool>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<f32>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<f32>>, <Self as TryInto<DataRef<Option<f32>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<f64>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<f64>>, <Self as TryInto<DataRef<Option<f64>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<i16>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<i16>>, <Self as TryInto<DataRef<Option<i16>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<i32>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<i32>>, <Self as TryInto<DataRef<Option<i32>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<i64>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<i64>>, <Self as TryInto<DataRef<Option<i64>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<u16>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<u16>>, <Self as TryInto<DataRef<Option<u16>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<u32>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<u32>>, <Self as TryInto<DataRef<Option<u32>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<u64>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<u64>>, <Self as TryInto<DataRef<Option<u64>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Option<u8>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Option<u8>>, <Self as TryInto<DataRef<Option<u8>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<ProtoDatumToPersist>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<ProtoDatumToPersist>, <Self as TryInto<DataRef<ProtoDatumToPersist>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<ProtoDatumToPersistNoStats>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<ProtoDatumToPersistNoStats>, <Self as TryInto<DataRef<ProtoDatumToPersistNoStats>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<String>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<String>, <Self as TryInto<DataRef<String>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Timestamp>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Timestamp>, <Self as TryInto<DataRef<Timestamp>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<Vec<u8>>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<Vec<u8>>, <Self as TryInto<DataRef<Vec<u8>>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<bool>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<bool>, <Self as TryInto<DataRef<bool>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<f32>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<f32>, <Self as TryInto<DataRef<f32>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<f64>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<f64>, <Self as TryInto<DataRef<f64>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<i16>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<i16>, <Self as TryInto<DataRef<i16>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<i32>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<i32>, <Self as TryInto<DataRef<i32>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<i64>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<i64>, <Self as TryInto<DataRef<i64>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<u16>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<u16>, <Self as TryInto<DataRef<u16>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<u32>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<u32>, <Self as TryInto<DataRef<u32>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<u64>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self, ) -> Result<DataRef<u64>, <Self as TryInto<DataRef<u64>>>::Error>

Performs the conversion.
source§

impl TryInto<DataRef<u8>> for DatumDecoder

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<DataRef<u8>, <Self as TryInto<DataRef<u8>>>::Error>

Performs the conversion.

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<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, U> OverrideFrom<Option<&T>> for U
where U: OverrideFrom<T>,

source§

fn override_from(self, layer: &Option<&T>) -> U

Override the configuration represented by Self with values from the given layer.
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

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

§

type Output = T

Should always be Self
source§

impl<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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,