risingwave_batch::exchange_source

Trait ExchangeSource

source
pub trait ExchangeSource: Send + Debug {
    // Required methods
    fn take_data(
        &mut self,
    ) -> impl Future<Output = Result<Option<DataChunk>>> + '_;
    fn get_task_id(&self) -> TaskId;
}
Expand description

Each ExchangeSource maps to one task, it takes the execution result from task chunk by chunk.

Required Methods§

source

fn take_data(&mut self) -> impl Future<Output = Result<Option<DataChunk>>> + '_

source

fn get_task_id(&self) -> TaskId

Get upstream task id.

Object Safety§

This trait is not object safe.

Implementors§