pub trait OptimizationRule {
// Provided methods
fn optimize_plan(
&mut self,
_lp_arena: &mut Arena<IR>,
_expr_arena: &mut Arena<AExpr>,
_node: Node,
) -> Option<IR> { ... }
fn optimize_expr(
&mut self,
_expr_arena: &mut Arena<AExpr>,
_expr_node: Node,
_lp_arena: &Arena<IR>,
_lp_node: Node,
) -> PolarsResult<Option<AExpr>> { ... }
}
Provided Methods§
Sourcefn optimize_plan(
&mut self,
_lp_arena: &mut Arena<IR>,
_expr_arena: &mut Arena<AExpr>,
_node: Node,
) -> Option<IR>
fn optimize_plan( &mut self, _lp_arena: &mut Arena<IR>, _expr_arena: &mut Arena<AExpr>, _node: Node, ) -> Option<IR>
Optimize (subplan) in LogicalPlan
lp_arena
- LogicalPlan memory arenaexpr_arena
- Expression memory arenanode
- node of the current LogicalPlan node