pub trait LazyBatchGenerator:
Send
+ Sync
+ Debug
+ Display {
// Required methods
fn as_any(&self) -> &dyn Any;
fn generate_next_batch(&mut self) -> Result<Option<RecordBatch>>;
// Provided method
fn boundedness(&self) -> Boundedness { ... }
}Required Methods§
Sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the generator as Any so that it can be
downcast to a specific implementation.
Sourcefn generate_next_batch(&mut self) -> Result<Option<RecordBatch>>
fn generate_next_batch(&mut self) -> Result<Option<RecordBatch>>
Generate the next batch, return None when no more batches are available