Trait datafusion_optimizer::optimizer::OptimizerRule
source · [−]pub trait OptimizerRule {
fn optimize(
&self,
plan: &LogicalPlan,
optimizer_config: &mut OptimizerConfig
) -> 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,
optimizer_config: &mut OptimizerConfig
) -> Result<LogicalPlan>
fn optimize(
&self,
plan: &LogicalPlan,
optimizer_config: &mut OptimizerConfig
) -> Result<LogicalPlan>
Rewrite plan
to an optimized form