vortex_array/arrow/
mod.rs

1//! Utilities to work with `Arrow` data and types.
2
3use arrow_array::ArrayRef;
4use arrow_schema::DataType;
5use vortex_error::VortexResult;
6
7mod array;
8mod datum;
9mod dtype;
10mod record_batch;
11pub use datum::*;
12
13pub trait FromArrowArray<A> {
14    fn from_arrow(array: A, nullable: bool) -> Self;
15}
16
17pub trait IntoArrowArray {
18    fn into_arrow_preferred(self) -> VortexResult<ArrayRef>;
19
20    fn into_arrow(self, data_type: &DataType) -> VortexResult<ArrayRef>;
21}