Class LogicalPlanPreOptimizer

java.lang.Object
org.elasticsearch.xpack.esql.optimizer.LogicalPlanPreOptimizer

public class LogicalPlanPreOptimizer extends Object
The class is responsible for invoking any steps that need to be applied to the logical plan, before this is being optimized.

This is useful, especially if you need to execute some async tasks before the plan is optimized.

  • Constructor Details

  • Method Details

    • preOptimize

      public void preOptimize(LogicalPlan plan, ActionListener<LogicalPlan> listener)
      Pre-optimize a logical plan.
      Parameters:
      plan - the analyzed logical plan to pre-optimize
      listener - the listener returning the pre-optimized plan when pre-optimization is complete