RecordBatchReader

Trait RecordBatchReader 

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§

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.

Implementations on Foreign Types§

§

impl RecordBatchReader for ParquetRecordBatchReader

§

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

Returns the projected SchemaRef for reading the parquet file.

Note that the schema metadata will be stripped here. See [ParquetRecordBatchReaderBuilder::schema] if the metadata is desired.

§

impl<R> RecordBatchReader for Box<R>

§

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

Implementors§