Skip to main content

ExchangeSource

Trait ExchangeSource 

pub trait ExchangeSource: Send + Debug {
    // Required methods
    fn take_data(
        &mut self,
    ) -> impl Future<Output = Result<Option<DataChunk>, BatchError>>;
    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§

fn take_data( &mut self, ) -> impl Future<Output = Result<Option<DataChunk>, BatchError>>

fn get_task_id(&self) -> TaskId

Get upstream task id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§