arrow_array::record_batch

Trait RecordBatchReader

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

Trait for types that can read RecordBatch’s.

To create from an iterator, see RecordBatchIterator.

Required Methods§

Source

fn schema(&self) -> SchemaRef

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.

Implementations on Foreign Types§

Source§

impl<R: RecordBatchReader + ?Sized> RecordBatchReader for Box<R>

Source§

fn schema(&self) -> SchemaRef

Implementors§