Skip to main content

TryFromArrowType

Trait TryFromArrowType 

Source
pub trait TryFromArrowType<T>: Sized {
    // Required method
    fn try_from_arrow(value: T) -> VortexResult<Self>;
}
👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Expand description

Trait for converting Arrow types to Vortex types.

Required Methods§

Source

fn try_from_arrow(value: T) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Convert the Arrow type to a Vortex type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TryFromArrowType<&DataType> for DecimalDType

Source§

fn try_from_arrow(value: &DataType) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<&DataType> for PType

Source§

fn try_from_arrow(value: &DataType) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<&Field> for DType

Source§

fn try_from_arrow(field: &Field) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<&Fields> for StructFields

Source§

fn try_from_arrow(value: &Fields) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<&Schema> for DType

Source§

fn try_from_arrow(value: &Schema) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<(&DataType, Nullability)> for DType

Source§

fn try_from_arrow( (data_type, nullability): (&DataType, Nullability), ) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl TryFromArrowType<Arc<Schema>> for DType

Source§

fn try_from_arrow(value: SchemaRef) -> VortexResult<Self>

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Implementors§