Interface IterationRuntimeContext
-
- All Superinterfaces:
RuntimeContext
@Public public interface IterationRuntimeContext extends RuntimeContext
A specialization of theRuntimeContextavailable in iterative computations of the DataSet API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Aggregator<?>>
TgetIterationAggregator(String name)<T extends Value>
TgetPreviousIterationAggregate(String name)intgetSuperstepNumber()Gets the number of the current superstep.-
Methods inherited from interface org.apache.flink.api.common.functions.RuntimeContext
addAccumulator, getAccumulator, getAggregatingState, getAttemptNumber, getBroadcastVariable, getBroadcastVariableWithInitializer, getDistributedCache, getDoubleCounter, getExecutionConfig, getExternalResourceInfos, getHistogram, getIndexOfThisSubtask, getIntCounter, getJobId, getListState, getLongCounter, getMapState, getMaxNumberOfParallelSubtasks, getMetricGroup, getNumberOfParallelSubtasks, getReducingState, getState, getTaskName, getTaskNameWithSubtasks, getUserCodeClassLoader, hasBroadcastVariable, registerUserCodeClassLoaderReleaseHookIfAbsent
-
-
-
-
Method Detail
-
getSuperstepNumber
int getSuperstepNumber()
Gets the number of the current superstep. Superstep numbers start at 1.- Returns:
- The number of the current superstep.
-
getIterationAggregator
@PublicEvolving <T extends Aggregator<?>> T getIterationAggregator(String name)
-
-