Trait ToCanonical

Source
pub trait ToCanonical {
    // Required methods
    fn to_null(&self) -> VortexResult<NullArray>;
    fn to_bool(&self) -> VortexResult<BoolArray>;
    fn to_primitive(&self) -> VortexResult<PrimitiveArray>;
    fn to_decimal(&self) -> VortexResult<DecimalArray>;
    fn to_struct(&self) -> VortexResult<StructArray>;
    fn to_list(&self) -> VortexResult<ListArray>;
    fn to_varbinview(&self) -> VortexResult<VarBinViewArray>;
    fn to_extension(&self) -> VortexResult<ExtensionArray>;
}
Expand description

Trait for types that can be converted from an owned type into an owned array variant.

§Canonicalization

This trait has a blanket implementation for all types implementing ToCanonical.

Required Methods§

Source

fn to_null(&self) -> VortexResult<NullArray>

Canonicalize into a NullArray if the target is Null typed.

Source

fn to_bool(&self) -> VortexResult<BoolArray>

Canonicalize into a BoolArray if the target is Bool typed.

Source

fn to_primitive(&self) -> VortexResult<PrimitiveArray>

Canonicalize into a PrimitiveArray if the target is Primitive typed.

Source

fn to_decimal(&self) -> VortexResult<DecimalArray>

Canonicalize into a DecimalArray if the target is Decimal typed.

Source

fn to_struct(&self) -> VortexResult<StructArray>

Canonicalize into a StructArray if the target is Struct typed.

Source

fn to_list(&self) -> VortexResult<ListArray>

Canonicalize into a ListArray if the target is List typed.

Source

fn to_varbinview(&self) -> VortexResult<VarBinViewArray>

Canonicalize into a VarBinViewArray if the target is Utf8 or Binary typed.

Source

fn to_extension(&self) -> VortexResult<ExtensionArray>

Canonicalize into an ExtensionArray if the array is Extension typed.

Implementors§

Source§

impl<A: Array + ?Sized> ToCanonical for A