Skip to main content

FromArrowType

Trait FromArrowType 

Source
pub trait FromArrowType<T>: Sized {
    // Required method
    fn from_arrow(value: T) -> 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 from_arrow(value: T) -> 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 FromArrowType<&Field> for DType

Source§

fn from_arrow(field: &Field) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl FromArrowType<&Fields> for StructFields

Source§

fn from_arrow(value: &Fields) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl FromArrowType<&Schema> for DType

Source§

fn from_arrow(value: &Schema) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl FromArrowType<&TimeUnit> for TimeUnit

Source§

fn from_arrow(value: &ArrowTimeUnit) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

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

Source§

fn from_arrow(value: (&DataType, Nullability)) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl FromArrowType<Arc<Schema>> for DType

Source§

fn from_arrow(value: SchemaRef) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Source§

impl FromArrowType<TimeUnit> for TimeUnit

Source§

fn from_arrow(value: ArrowTimeUnit) -> Self

👎Deprecated:

Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead

Implementors§