Package org.apache.wayang.core.optimizer
Class OptimizationContext.LoopContext
java.lang.Object
org.apache.wayang.core.optimizer.OptimizationContext.LoopContext
- Enclosing class:
- OptimizationContext
Maintains
OptimizationContexts for the iterations of a LoopSubplan.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLoopContext(OptimizationContext.OperatorContext loopSubplanContext) -
Method Summary
Modifier and TypeMethodDescriptionAdd a new iterationOptimizationContextbetween second-to-last and final iteration.getIterationContext(int iteration) Retrieves the iterationOptimizationContexts.getLoop()
-
Constructor Details
-
LoopContext
-
-
Method Details
-
getLoopSubplanContext
-
getIterationContexts
Retrieves the iterationOptimizationContexts.Note that for
niterations, there aren+1OptimizationContexts because theLoopHeadOperatoris triggeredn+1times. The firstnrepresent the iterations, the final represents the final state of the loop, in which only theLoopHeadOperatoris run the last time.- Returns:
- the
OptimizationContextfor each iteration; order by execution order
-
getIterationContext
-
getOptimizationContext
- Returns:
- the
OptimizationContextin that theLoopSubplanresides
-
getInitialIterationContext
-
getFinalIterationContext
-
appendIterationContext
Add a new iterationOptimizationContextbetween second-to-last and final iteration.- Returns:
- the added
OptimizationContext
-
getLoop
-
getAggregateContext
-