Package org.apache.wayang.java.execution
Class JavaExecutionContext
java.lang.Object
org.apache.wayang.java.execution.JavaExecutionContext
- All Implemented Interfaces:
ExecutionContext
ExecutionContext implementation for the JavaPlatform.-
Constructor Summary
ConstructorsConstructorDescriptionJavaExecutionContext(JavaExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber) -
Method Summary
Modifier and TypeMethodDescription<T> Collection<T>getBroadcast(String name) Accesses a broadcast.intIf this instance reflects the state of execution inside of aLoopSubplan, then retrieve the number of the current iteration.
-
Constructor Details
-
JavaExecutionContext
public JavaExecutionContext(JavaExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber)
-
-
Method Details
-
getBroadcast
Description copied from interface:ExecutionContextAccesses a broadcast.- Specified by:
getBroadcastin interfaceExecutionContext- Type Parameters:
T- type of the broadcast- Parameters:
name- name of the broadcast- Returns:
- the broadcast
-
getCurrentIteration
public int getCurrentIteration()Description copied from interface:ExecutionContextIf this instance reflects the state of execution inside of aLoopSubplan, then retrieve the number of the current iteration.- Specified by:
getCurrentIterationin interfaceExecutionContext- Returns:
- the iteration number, start at
0, or-1if there is no surroundingLoopSubplan
-