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, createSerializer, getAccumulator, getAggregatingState, getAttemptNumber, getBroadcastVariable, getBroadcastVariableWithInitializer, getDistributedCache, getDoubleCounter, getExecutionConfig, getExternalResourceInfos, getGlobalJobParameters, getHistogram, getIndexOfThisSubtask, getIntCounter, getJobId, getJobInfo, getListState, getLongCounter, getMapState, getMaxNumberOfParallelSubtasks, getMetricGroup, getNumberOfParallelSubtasks, getReducingState, getState, getTaskInfo, getTaskName, getTaskNameWithSubtasks, getUserCodeClassLoader, hasBroadcastVariable, isObjectReuseEnabled, 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)
-
-