pub struct ArrowFile {
pub schema: Schema,
pub(crate) dictionaries: HashMap<i64, ArrowJsonDictionaryBatch>,
pub(crate) arrow_json: Value,
}
Expand description
An Arrow file in JSON format
Fields§
§schema: Schema
The schema of the file
dictionaries: HashMap<i64, ArrowJsonDictionaryBatch>
§arrow_json: Value
Implementations§
Source§impl ArrowFile
impl ArrowFile
Sourcepub fn read_batch(&self, batch_num: usize) -> Result<RecordBatch>
pub fn read_batch(&self, batch_num: usize) -> Result<RecordBatch>
Read a single RecordBatch from the file
Sourcepub fn read_batches(&self) -> Result<Vec<RecordBatch>>
pub fn read_batches(&self) -> Result<Vec<RecordBatch>>
Read all RecordBatches from the file
Auto Trait Implementations§
impl Freeze for ArrowFile
impl RefUnwindSafe for ArrowFile
impl Send for ArrowFile
impl Sync for ArrowFile
impl Unpin for ArrowFile
impl UnwindSafe for ArrowFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].