pub trait QueryExecutor: Send + Sync {
// Required methods
fn execute_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn execute_node<'life0, 'life1, 'async_trait>(
&'life0 self,
node: &'life1 PlanNode,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_connector_registry(&mut self, registry: ConnectorRegistry);
}Expand description
Trait for query execution functionality
Required Methods§
Sourcefn execute_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
plan: &'life1 ExecutionPlan,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute an execution plan and return results
Sourcefn execute_node<'life0, 'life1, 'async_trait>(
&'life0 self,
node: &'life1 PlanNode,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_node<'life0, 'life1, 'async_trait>(
&'life0 self,
node: &'life1 PlanNode,
) -> Pin<Box<dyn Future<Output = NirvResult<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute a single plan node
Sourcefn set_connector_registry(&mut self, registry: ConnectorRegistry)
fn set_connector_registry(&mut self, registry: ConnectorRegistry)
Set the connector registry for accessing data sources