pub trait FromArrowType<T>: Sized {
// Required method
fn from_arrow(value: T) -> Self;
}Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Expand description
Trait for converting Arrow types to Vortex types.
Required Methods§
Sourcefn from_arrow(value: T) -> Self
👎Deprecated: Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
fn from_arrow(value: T) -> Self
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
impl FromArrowType<&Field> for DType
Source§fn from_arrow(field: &Field) -> Self
fn from_arrow(field: &Field) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<&Fields> for StructFields
impl FromArrowType<&Fields> for StructFields
Source§fn from_arrow(value: &Fields) -> Self
fn from_arrow(value: &Fields) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<&Schema> for DType
impl FromArrowType<&Schema> for DType
Source§fn from_arrow(value: &Schema) -> Self
fn from_arrow(value: &Schema) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<&TimeUnit> for TimeUnit
impl FromArrowType<&TimeUnit> for TimeUnit
Source§fn from_arrow(value: &ArrowTimeUnit) -> Self
fn from_arrow(value: &ArrowTimeUnit) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<(&DataType, Nullability)> for DType
impl FromArrowType<(&DataType, Nullability)> for DType
Source§fn from_arrow(value: (&DataType, Nullability)) -> Self
fn from_arrow(value: (&DataType, Nullability)) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<Arc<Schema>> for DType
impl FromArrowType<Arc<Schema>> for DType
Source§fn from_arrow(value: SchemaRef) -> Self
fn from_arrow(value: SchemaRef) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl FromArrowType<TimeUnit> for TimeUnit
impl FromArrowType<TimeUnit> for TimeUnit
Source§fn from_arrow(value: ArrowTimeUnit) -> Self
fn from_arrow(value: ArrowTimeUnit) -> Self
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead