Class ForkApproximation
java.lang.Object
org.elasticsearch.xpack.esql.approximation.ForkApproximation
- All Implemented Interfaces:
ApproximationDriver
Approximation for a query that contains
FORK and STATS in
one or more branches.
The approximation process is similar to Approximation, and makes
heavy use of that:
- The source count is obtained by executing the source count plan of any the branches.
- If needed, the (filtered) counts are obtained by creating a FORK query containing the branches' count subplans.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the next subplan to execute for calibration, ornullif the main plan can run.newMainPlan(LogicalPlan mainPlan, Result result) Processes a subplan result and returns the main plan with placeholders substituted when this calibration step is complete.
-
Method Details
-
firstSubPlan
Description copied from interface:ApproximationDriverReturns the next subplan to execute for calibration, ornullif the main plan can run.- Specified by:
firstSubPlanin interfaceApproximationDriver
-
newMainPlan
Description copied from interface:ApproximationDriverProcesses a subplan result and returns the main plan with placeholders substituted when this calibration step is complete.- Specified by:
newMainPlanin interfaceApproximationDriver
-