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§
Trait Implementations§
Source§impl IntoPyArrow for Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>> + Send>
Convert a RecordBatchReader into a pyarrow.RecordBatchReader.
impl IntoPyArrow for Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>> + Send>
Convert a RecordBatchReader into a pyarrow.RecordBatchReader.
Source§impl TryFrom<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>> for Table
impl TryFrom<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>> for Table
Source§type Error = ArrowError
type Error = ArrowError
The type returned in the event of a conversion error.
Source§fn try_from(
value: Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>,
) -> Result<Table, ArrowError>
fn try_from( value: Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>, ) -> Result<Table, ArrowError>
Performs the conversion.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".