Class LocalLogicalPlanOptimizer
java.lang.Object
org.elasticsearch.xpack.esql.rule.RuleExecutor<LogicalPlan>
org.elasticsearch.xpack.esql.rule.ParameterizedRuleExecutor<LogicalPlan,LocalLogicalOptimizerContext>
org.elasticsearch.xpack.esql.optimizer.LocalLogicalPlanOptimizer
public class LocalLogicalPlanOptimizer
extends ParameterizedRuleExecutor<LogicalPlan,LocalLogicalOptimizerContext>
This class is part of the planner. Data node level logical optimizations. At this point we have access to
SearchStats which provides access to metadata about the index.
NB: This class also reapplies all the rules from LogicalPlanOptimizer.operators(boolean)
and LogicalPlanOptimizer.cleanup()
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.esql.rule.RuleExecutor
RuleExecutor.Batch<TreeType extends Node<TreeType>>, RuleExecutor.ExecutionInfo, RuleExecutor.Limiter, RuleExecutor.Transformation -
Constructor Summary
ConstructorsConstructorDescriptionLocalLogicalPlanOptimizer(LocalLogicalOptimizerContext localLogicalOptimizerContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<RuleExecutor.Batch<LogicalPlan>> batches()localOptimize(LogicalPlan plan) Methods inherited from class org.elasticsearch.xpack.esql.rule.ParameterizedRuleExecutor
context, transformMethods inherited from class org.elasticsearch.xpack.esql.rule.RuleExecutor
execute, executeWithInfo
-
Constructor Details
-
LocalLogicalPlanOptimizer
-
-
Method Details
-
batches
- Specified by:
batchesin classRuleExecutor<LogicalPlan>
-
localOptimize
-