@Public public interface IterationRuntimeContext extends RuntimeContext
Modifier and Type | Method and Description |
---|---|
<T extends Aggregator<?>> |
getIterationAggregator(String name) |
<T extends Value> |
getPreviousIterationAggregate(String name) |
int |
getSuperstepNumber()
Gets the number of the current superstep.
|
addAccumulator, getAccumulator, getAllAccumulators, getAttemptNumber, getBroadcastVariable, getBroadcastVariableWithInitializer, getDistributedCache, getDoubleCounter, getExecutionConfig, getHistogram, getIndexOfThisSubtask, getIntCounter, getKeyValueState, getKeyValueState, getListState, getLongCounter, getNumberOfParallelSubtasks, getReducingState, getState, getTaskName, getTaskNameWithSubtasks, getUserCodeClassLoader
int getSuperstepNumber()
@PublicEvolving <T extends Aggregator<?>> T getIterationAggregator(String name)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.