public final class InputSplitManager extends Object
AbstractInputTask objects at runtime.
Before passed on to the DefaultScheduler, an ExecutionGraph is registered with the input split
manager and all included input vertices of the graph register their generated input splits with the manager. Each
type of input split can be assigned to a specific InputSplitAssigner which is loaded by the input split
manager at runtime.
This class is thread-safe.
| Constructor and Description |
|---|
InputSplitManager() |
| Modifier and Type | Method and Description |
|---|---|
InputSplit |
getNextInputSplit(ExecutionVertex vertex,
int sequenceNumber)
Returns the next input split the input split manager (or the responsible
InputSplitAssigner to be more
precise) has chosen for the given vertex to consume. |
void |
registerJob(ExecutionGraph executionGraph)
Registers a new job represented by its
ExecutionGraph with the input split manager. |
void |
unregisterJob(ExecutionGraph executionGraph)
Unregisters the given job represented by its
ExecutionGraph with the input split manager. |
public void registerJob(ExecutionGraph executionGraph)
ExecutionGraph with the input split manager.executionGraph - the job to be registeredpublic void unregisterJob(ExecutionGraph executionGraph)
ExecutionGraph with the input split manager.executionGraph - the job to be unregisteredpublic InputSplit getNextInputSplit(ExecutionVertex vertex, int sequenceNumber)
InputSplitAssigner to be more
precise) has chosen for the given vertex to consume.vertex - the vertex for which the next input split is to be determinedsequenceNumber - the sequence number of the vertex's requestnull if the vertex shall consume no more input splitsCopyright © 2014 The Apache Software Foundation. All rights reserved.