Class LookupExecutionPlanner
java.lang.Object
org.elasticsearch.xpack.esql.enrich.LookupExecutionPlanner
Plans the execution of a lookup physical plan
Converts PhysicalPlan nodes into PhysicalOperation with operator factories
Also converts PhysicalOperation into actual Operators
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface for creating aLookupEnrichQueryGeneratorfrom plan data. -
Constructor Summary
ConstructorsConstructorDescriptionLookupExecutionPlanner(BlockFactory blockFactory, BigArrays bigArrays, LocalCircuitBreaker.SizeSettings localBreakerSettings) -
Method Summary
Modifier and TypeMethodDescriptionbuildOperatorFactories(PlannerSettings plannerSettings, PhysicalPlan physicalPlan, BlockOptimization blockOptimization, SourceOperator.SourceOperatorFactory sourceFactory, FoldContext foldCtx, LookupExecutionPlanner.QueryListFromPlanFactory queryListFromPlanFactory, Source lookupSource) Creates a PhysicalOperation with operator factories, matching LocalExecutionPlanner's pattern.org.elasticsearch.xpack.esql.enrich.LookupFromIndexService.LookupQueryPlanbuildOperators(LocalExecutionPlanner.PhysicalOperation physicalOperation, AbstractLookupService.LookupShardContext shardContext, List<org.elasticsearch.core.Releasable> releasables, Page inputPage, AliasFilter aliasFilter) Creates the actual operators from the PhysicalOperation using DriverContext.
-
Constructor Details
-
LookupExecutionPlanner
public LookupExecutionPlanner(BlockFactory blockFactory, BigArrays bigArrays, LocalCircuitBreaker.SizeSettings localBreakerSettings)
-
-
Method Details
-
buildOperatorFactories
public LocalExecutionPlanner.PhysicalOperation buildOperatorFactories(PlannerSettings plannerSettings, PhysicalPlan physicalPlan, BlockOptimization blockOptimization, SourceOperator.SourceOperatorFactory sourceFactory, FoldContext foldCtx, LookupExecutionPlanner.QueryListFromPlanFactory queryListFromPlanFactory, Source lookupSource) Creates a PhysicalOperation with operator factories, matching LocalExecutionPlanner's pattern.- Parameters:
lookupSource- the Source to use for warning messages (from the original LOOKUP JOIN expression), passed separately because plan nodes conventionally discard Source during serialization.
-
buildOperators
public org.elasticsearch.xpack.esql.enrich.LookupFromIndexService.LookupQueryPlan buildOperators(LocalExecutionPlanner.PhysicalOperation physicalOperation, AbstractLookupService.LookupShardContext shardContext, List<org.elasticsearch.core.Releasable> releasables, Page inputPage, AliasFilter aliasFilter) Creates the actual operators from the PhysicalOperation using DriverContext. The collectedPages list is created here and stored in LookupDriverContext.
-