kona_derive::stages

Trait BatchStreamProvider

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

Source

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.

Source

fn flush(&mut self)

Drains the recent Channel if an invalid span batch is found post-holocene.

Implementors§