Package org.apache.wayang.core.optimizer
Class OptimizationContext.LoopContext
java.lang.Object
org.apache.wayang.core.optimizer.OptimizationContext.LoopContext
- Enclosing class:
- OptimizationContext
Maintains
OptimizationContext
s for the iterations of a LoopSubplan
.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LoopContext
(OptimizationContext.OperatorContext loopSubplanContext) -
Method Summary
Modifier and TypeMethodDescriptionAdd a new iterationOptimizationContext
between second-to-last and final iteration.getIterationContext
(int iteration) Retrieves the iterationOptimizationContext
s.getLoop()
-
Constructor Details
-
LoopContext
-
-
Method Details
-
getLoopSubplanContext
-
getIterationContexts
Retrieves the iterationOptimizationContext
s.Note that for
n
iterations, there aren+1
OptimizationContext
s because theLoopHeadOperator
is triggeredn+1
times. The firstn
represent the iterations, the final represents the final state of the loop, in which only theLoopHeadOperator
is run the last time.- Returns:
- the
OptimizationContext
for each iteration; order by execution order
-
getIterationContext
-
getOptimizationContext
- Returns:
- the
OptimizationContext
in that theLoopSubplan
resides
-
getInitialIterationContext
-
getFinalIterationContext
-
appendIterationContext
Add a new iterationOptimizationContext
between second-to-last and final iteration.- Returns:
- the added
OptimizationContext
-
getLoop
-
getAggregateContext
-