Class FlinkExecutionContext
- java.lang.Object
-
- org.apache.wayang.flink.execution.FlinkExecutionContext
-
- All Implemented Interfaces:
java.io.Serializable,ExecutionContext
public class FlinkExecutionContext extends java.lang.Object implements ExecutionContext, java.io.Serializable
ExecutionContextimplementation for theFlinkPlatform.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlinkExecutionContext(FlinkExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Type> java.util.Collection<Type>getBroadcast(java.lang.String name)Accesses a broadcast.intgetCurrentIteration()If this instance reflects the state of execution inside of aLoopSubplan, then retrieve the number of the current iteration.voidsetRichFunction(org.apache.flink.api.common.functions.RichFunction richFunction)
-
-
-
Constructor Detail
-
FlinkExecutionContext
public FlinkExecutionContext(FlinkExecutionOperator operator, ChannelInstance[] inputs, int iterationNumber)
-
-
Method Detail
-
getBroadcast
public <Type> java.util.Collection<Type> getBroadcast(java.lang.String name)
Description copied from interface:ExecutionContextAccesses a broadcast.- Specified by:
getBroadcastin interfaceExecutionContext- Type Parameters:
Type- type of the broadcast- Parameters:
name- name of the broadcast- Returns:
- the broadcast
-
setRichFunction
public void setRichFunction(org.apache.flink.api.common.functions.RichFunction richFunction)
-
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
-
-