mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
@@ -0,0 +1,15 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use datafusion::physical_plan::ExecutionPlan;
|
||||
|
||||
use super::logical_planner::QueryPlan;
|
||||
use super::session::SessionCtx;
|
||||
use crate::QueryResult;
|
||||
|
||||
pub type OptimizerRef = Arc<dyn Optimizer + Send + Sync>;
|
||||
|
||||
#[async_trait]
|
||||
pub trait Optimizer {
|
||||
async fn optimize(&self, plan: &QueryPlan, session: &SessionCtx) -> QueryResult<Arc<dyn ExecutionPlan>>;
|
||||
}
|
||||
Reference in New Issue
Block a user