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.
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.
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.