pub trait RecordBatchIterator: Send {
// Required methods
fn get_schema(&self) -> (RecordBatch, &[String]);
fn prepare(&mut self);
fn next_batch(&mut self) -> Option<OutResult<RecordBatch>>;
}Expand description
Object-safe interface over ArrowBatchIter for streaming Arrow record batches.
Required Methods§
Sourcefn get_schema(&self) -> (RecordBatch, &[String])
fn get_schema(&self) -> (RecordBatch, &[String])
Return an empty record batch carrying the result schema, together with the column names.
Sourcefn next_batch(&mut self) -> Option<OutResult<RecordBatch>>
fn next_batch(&mut self) -> Option<OutResult<RecordBatch>>
See ArrowBatchIter::next for the error semantics.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".