LazyBatchGenerator

Trait LazyBatchGenerator 

Source
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§

Source

fn as_any(&self) -> &dyn Any

Returns the generator as Any so that it can be downcast to a specific implementation.

Source

fn generate_next_batch(&mut self) -> Result<Option<RecordBatch>>

Generate the next batch, return None when no more batches are available

Provided Methods§

Implementors§