risingwave_batch::executor::generic_exchange

Trait CreateSource

source
pub trait CreateSource: Send {
    // Required method
    fn create_source<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: impl 'async_trait + BatchTaskContext,
        prost_source: &'life1 PbExchangeSource,
    ) -> Pin<Box<dyn Future<Output = Result<ExchangeSourceImpl>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

CreateSource determines the right type of ExchangeSource to create.

Required Methods§

source

fn create_source<'life0, 'life1, 'async_trait>( &'life0 self, context: impl 'async_trait + BatchTaskContext, prost_source: &'life1 PbExchangeSource, ) -> Pin<Box<dyn Future<Output = Result<ExchangeSourceImpl>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§