Package org.apache.wayang.java.execution
Class JavaExecutionContext
- java.lang.Object
-
- org.apache.wayang.java.execution.JavaExecutionContext
-
- All Implemented Interfaces:
ExecutionContext
public class JavaExecutionContext extends java.lang.Object implements ExecutionContext
ExecutionContext
implementation for theJavaPlatform
.
-
-
Constructor Summary
Constructors Constructor Description JavaExecutionContext(JavaExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Collection<T>
getBroadcast(java.lang.String name)
Accesses a broadcast.int
getCurrentIteration()
If this instance reflects the state of execution inside of aLoopSubplan
, then retrieve the number of the current iteration.
-
-
-
Constructor Detail
-
JavaExecutionContext
public JavaExecutionContext(JavaExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber)
-
-
Method Detail
-
getBroadcast
public <T> java.util.Collection<T> getBroadcast(java.lang.String name)
Description copied from interface:ExecutionContext
Accesses a broadcast.- Specified by:
getBroadcast
in 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:ExecutionContext
If this instance reflects the state of execution inside of aLoopSubplan
, then retrieve the number of the current iteration.- Specified by:
getCurrentIteration
in interfaceExecutionContext
- Returns:
- the iteration number, start at
0
, or-1
if there is no surroundingLoopSubplan
-
-