Trait datafusion::optimizer::optimizer::OptimizerRule
source · [−]pub trait OptimizerRule {
fn optimize(
&self,
plan: &LogicalPlan,
execution_props: &ExecutionProps
) -> Result<LogicalPlan>;
fn name(&self) -> &str;
}
Expand description
OptimizerRule
transforms one [‘LogicalPlan’] into another which
computes the same results, but in a potentially more efficient
way.
Required methods
fn optimize(
&self,
plan: &LogicalPlan,
execution_props: &ExecutionProps
) -> Result<LogicalPlan>
fn optimize(
&self,
plan: &LogicalPlan,
execution_props: &ExecutionProps
) -> Result<LogicalPlan>
Rewrite plan
to an optimized form