Skip to main content

RecordBatchReader

Trait RecordBatchReader 

Source
pub trait RecordBatchReader: Iterator<Item = Result<RecordBatch, ArrowError>> {
    // Required method
    fn schema(&self) -> Arc<Schema> ;
}
Expand description

Trait for types that can read RecordBatch’s.

To create from an iterator, see RecordBatchIterator.

Required Methods§

Source

fn schema(&self) -> Arc<Schema>

Returns the schema of this RecordBatchReader.

Implementation of this trait should guarantee that all RecordBatch’s returned by this reader should have the same schema as returned from this method.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R> RecordBatchReader for Box<R>

Implementors§