pub trait QueryExecutor: Send + Sync {
// Required method
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
plan: Arc<dyn ExecutionPlan>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<RecordBatch>> + Send>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn execute_collect<'life0, 'async_trait>(
&'life0 self,
plan: Arc<dyn ExecutionPlan>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RecordBatch>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Trait for executing physical query plans
Required Methods§
Sourcefn execute_stream<'life0, 'async_trait>(
&'life0 self,
plan: Arc<dyn ExecutionPlan>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<RecordBatch>> + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_stream<'life0, 'async_trait>(
&'life0 self,
plan: Arc<dyn ExecutionPlan>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<RecordBatch>> + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a physical plan and return the results as a stream of record batches