pub trait ToArrowType {
// Required methods
fn to_arrow_schema(&self) -> VortexResult<Schema>;
fn to_arrow_dtype(&self) -> VortexResult<DataType>;
}๐Deprecated:
Use ArrowSession::to_arrow_schema / to_arrow_datatype instead
Expand description
Required Methodsยง
Sourcefn to_arrow_schema(&self) -> VortexResult<Schema>
๐Deprecated: Use ArrowSession::to_arrow_schema instead
fn to_arrow_schema(&self) -> VortexResult<Schema>
Use ArrowSession::to_arrow_schema instead
Sourcefn to_arrow_dtype(&self) -> VortexResult<DataType>
๐Deprecated: Use ArrowSession::to_arrow_datatype instead
fn to_arrow_dtype(&self) -> VortexResult<DataType>
Use ArrowSession::to_arrow_datatype instead
Returns the Arrow DataType that best corresponds to this Vortex DType.
This method has no awareness of registered Arrow extension plugins, so any
DType::Extension outside the builtin temporal set will fail or silently lose its
ARROW:extension:name metadata. The session methods recurse through containers
and dispatch plugins at every extension node.
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Typesยง
Sourceยงimpl ToArrowType for DType
impl ToArrowType for DType
Sourceยงfn to_arrow_schema(&self) -> VortexResult<Schema>
fn to_arrow_schema(&self) -> VortexResult<Schema>
๐Deprecated:
Use ArrowSession::to_arrow_schema instead
Sourceยงfn to_arrow_dtype(&self) -> VortexResult<DataType>
fn to_arrow_dtype(&self) -> VortexResult<DataType>
๐Deprecated:
Use ArrowSession::to_arrow_datatype instead