polars_plan::plans

Trait OptimizationRule

Source
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§

Source

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 arena
  • expr_arena - Expression memory arena
  • node - node of the current LogicalPlan node
Source

fn optimize_expr( &mut self, _expr_arena: &mut Arena<AExpr>, _expr_node: Node, _lp_arena: &Arena<IR>, _lp_node: Node, ) -> PolarsResult<Option<AExpr>>

Implementors§