pub trait BatchStreamProvider {
// Required methods
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Batch, PipelineErrorKind>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: '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 = Result<Batch, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Batch, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the next Batch in the BatchStream stage.