pub trait TryFromArrowType<T>: Sized {
// Required method
fn try_from_arrow(value: T) -> VortexResult<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 try_from_arrow(value: T) -> VortexResult<Self>
👎Deprecated: Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
fn try_from_arrow(value: T) -> VortexResult<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 TryFromArrowType<&DataType> for DecimalDType
impl TryFromArrowType<&DataType> for DecimalDType
Source§fn try_from_arrow(value: &DataType) -> VortexResult<Self>
fn try_from_arrow(value: &DataType) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<&DataType> for PType
impl TryFromArrowType<&DataType> for PType
Source§fn try_from_arrow(value: &DataType) -> VortexResult<Self>
fn try_from_arrow(value: &DataType) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<&Field> for DType
impl TryFromArrowType<&Field> for DType
Source§fn try_from_arrow(field: &Field) -> VortexResult<Self>
fn try_from_arrow(field: &Field) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<&Fields> for StructFields
impl TryFromArrowType<&Fields> for StructFields
Source§fn try_from_arrow(value: &Fields) -> VortexResult<Self>
fn try_from_arrow(value: &Fields) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<&Schema> for DType
impl TryFromArrowType<&Schema> for DType
Source§fn try_from_arrow(value: &Schema) -> VortexResult<Self>
fn try_from_arrow(value: &Schema) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<(&DataType, Nullability)> for DType
impl TryFromArrowType<(&DataType, Nullability)> for DType
Source§fn try_from_arrow(
(data_type, nullability): (&DataType, Nullability),
) -> VortexResult<Self>
fn try_from_arrow( (data_type, nullability): (&DataType, Nullability), ) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead
Source§impl TryFromArrowType<Arc<Schema>> for DType
impl TryFromArrowType<Arc<Schema>> for DType
Source§fn try_from_arrow(value: SchemaRef) -> VortexResult<Self>
fn try_from_arrow(value: SchemaRef) -> VortexResult<Self>
Use ArrowSession (from_arrow_schema, from_arrow_field, from_arrow_datatype) instead