pub trait BatchStreamProvider {
// Required methods
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PipelineResult<Batch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn flush(&mut self);
}
Expand description
Provides Batches for the BatchStream stage.
Required Methods§
Sourcefn next_batch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PipelineResult<Batch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PipelineResult<Batch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the next Batch in the BatchStream stage.