Class IterationIntermediateTask<S extends org.apache.flink.api.common.functions.Function,OT>
java.lang.Object
org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable
org.apache.flink.runtime.operators.BatchTask<S,OT>
org.apache.flink.runtime.iterative.task.AbstractIterativeTask<S,OT>
org.apache.flink.runtime.iterative.task.IterationIntermediateTask<S,OT>
- All Implemented Interfaces:
Terminable,CheckpointableTask,CoordinatedTask,TaskInvokable,TaskContext<S,OT>
public class IterationIntermediateTask<S extends org.apache.flink.api.common.functions.Function,OT>
extends AbstractIterativeTask<S,OT>
An intermediate iteration task, which runs a
Driver
inside.
It will propagate EndOfSuperstepEvents and TerminationEvents to its connected
tasks. Furthermore intermediate tasks can also update the iteration state, either the workset or
the solution set.
If the iteration state is updated, the output of this task will be send back to the IterationHeadTask via a BlockingBackChannel for the workset -XOR- a HashTable for the
solution set. In this case this task must be scheduled on the same instance as the head.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.iterative.task.AbstractIterativeTask
isSolutionSetUpdate, isWorksetIteration, isWorksetUpdate, worksetAggregator, worksetBackChannelFields inherited from class org.apache.flink.runtime.operators.BatchTask
accumulatorMap, broadcastInputReaders, broadcastInputSerializers, chainedTasks, config, driver, eventualOutputs, inputComparators, inputIterators, inputReaders, inputs, inputSerializers, iterativeBroadcastInputs, iterativeInputs, localStrategies, LOG, output, resettableInputs, running, runtimeUdfContext, stub, tempBarriers -
Constructor Summary
ConstructorsConstructorDescriptionIterationIntermediateTask(Environment environment) Create an Invokable task and set its environment. -
Method Summary
Methods inherited from class org.apache.flink.runtime.iterative.task.AbstractIterativeTask
brokerKey, cancel, closeLocalStrategiesAndCaches, createRuntimeContext, createSolutionSetUpdateOutputCollector, createWorksetUpdateOutputCollector, createWorksetUpdateOutputCollector, currentIteration, getIterationAggregators, incrementIterationCounter, inFirstIteration, requestTermination, terminationRequested, verifyEndOfSuperstepStateMethods inherited from class org.apache.flink.runtime.operators.BatchTask
cancelChainedTasks, clearReaders, clearWriters, closeChainedTasks, closeUserCode, constructLogString, createInputIterator, excludeFromReset, formatLogString, getContainingTask, getDriverComparator, getInput, getInputSerializer, getIOManager, getLastOutputCollector, getLastTasksConfig, getMemoryManager, getMetricGroup, getNumTaskInputs, getOutputCollector, getOutputCollector, getStub, getTaskConfig, getTaskManagerInfo, initBroadcastInputReaders, initBroadcastInputsSerializers, initInputReaders, initInputsSerializersAndComparators, initLocalStrategies, initOutputs, initOutputs, initStub, instantiateUserCode, invoke, logAndThrowException, openChainedTasks, openUserCode, readAndSetBroadcastInput, releaseBroadcastVariables, resetAllInputs, setLastOutputCollectorMethods inherited from class org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable
abortCheckpointOnBarrier, cleanUp, dispatchOperatorEvent, getCurrentNumberOfSubtasks, getEnvironment, getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, getUserCodeClassLoader, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, notifyCheckpointSubsumedAsync, restore, triggerCheckpointAsync, triggerCheckpointOnBarrierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.operators.TaskContext
getExecutionConfig, getUserCodeClassLoader
-
Constructor Details
-
IterationIntermediateTask
Create an Invokable task and set its environment.- Parameters:
environment- The environment assigned to this invokable.
-
-
Method Details
-
initialize
- Overrides:
initializein classAbstractIterativeTask<S extends org.apache.flink.api.common.functions.Function,OT> - Throws:
Exception
-
run
- Overrides:
runin classAbstractIterativeTask<S extends org.apache.flink.api.common.functions.Function,OT> - Throws:
Exception
-