QueryPlanner

Trait QueryPlanner 

Source
pub trait QueryPlanner: Send + Sync {
    // Required methods
    fn create_execution_plan<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 InternalQuery,
    ) -> Pin<Box<dyn Future<Output = NirvResult<ExecutionPlan>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn estimate_cost<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 InternalQuery,
    ) -> Pin<Box<dyn Future<Output = NirvResult<f64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn optimize_plan<'life0, 'async_trait>(
        &'life0 self,
        plan: ExecutionPlan,
    ) -> Pin<Box<dyn Future<Output = NirvResult<ExecutionPlan>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for query planning functionality

Required Methods§

Source

fn create_execution_plan<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 InternalQuery, ) -> Pin<Box<dyn Future<Output = NirvResult<ExecutionPlan>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create an execution plan for the given query

Source

fn estimate_cost<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 InternalQuery, ) -> Pin<Box<dyn Future<Output = NirvResult<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Estimate the cost of executing a query

Source

fn optimize_plan<'life0, 'async_trait>( &'life0 self, plan: ExecutionPlan, ) -> Pin<Box<dyn Future<Output = NirvResult<ExecutionPlan>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Optimize an execution plan

Implementors§