Package org.apache.wayang.core.function
Interface ExecutionContext
- All Known Implementing Classes:
FlinkExecutionContext
,JavaExecutionContext
,SparkExecutionContext
public interface ExecutionContext
While a function is executed on a certain
Platform
, allows access to some information of the context in
which the function is being executed.-
Method Summary
Modifier and TypeMethodDescription<T> Collection<T>
getBroadcast
(String name) Accesses a broadcast.int
If this instance reflects the state of execution inside of aLoopSubplan
, then retrieve the number of the current iteration.
-
Method Details
-
getBroadcast
Accesses a broadcast.- Type Parameters:
T
- type of the broadcast- Parameters:
name
- name of the broadcast- Returns:
- the broadcast
-
getCurrentIteration
int getCurrentIteration()If this instance reflects the state of execution inside of aLoopSubplan
, then retrieve the number of the current iteration.- Returns:
- the iteration number, start at
0
, or-1
if there is no surroundingLoopSubplan
-