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§
Sourcefn to_null(&self) -> VortexResult<NullArray>
fn to_null(&self) -> VortexResult<NullArray>
Sourcefn to_bool(&self) -> VortexResult<BoolArray>
fn to_bool(&self) -> VortexResult<BoolArray>
Sourcefn to_primitive(&self) -> VortexResult<PrimitiveArray>
fn to_primitive(&self) -> VortexResult<PrimitiveArray>
Canonicalize into a PrimitiveArray
if the target is Primitive
typed.
Sourcefn to_decimal(&self) -> VortexResult<DecimalArray>
fn to_decimal(&self) -> VortexResult<DecimalArray>
Canonicalize into a DecimalArray
if the target is Decimal
typed.
Sourcefn to_struct(&self) -> VortexResult<StructArray>
fn to_struct(&self) -> VortexResult<StructArray>
Canonicalize into a StructArray
if the target is Struct
typed.
Sourcefn to_list(&self) -> VortexResult<ListArray>
fn to_list(&self) -> VortexResult<ListArray>
Sourcefn to_varbinview(&self) -> VortexResult<VarBinViewArray>
fn to_varbinview(&self) -> VortexResult<VarBinViewArray>
Canonicalize into a VarBinViewArray
if the target is Utf8
or Binary
typed.
Sourcefn to_extension(&self) -> VortexResult<ExtensionArray>
fn to_extension(&self) -> VortexResult<ExtensionArray>
Canonicalize into an ExtensionArray
if the array is Extension
typed.