public class DefaultInputSplitAssigner extends Object implements InputSplitAssigner
InputSplitAssigner interface. The default input split assigner
simply returns all input splits of an input vertex in the order they were originally computed. The default input
split assigner is always used when a more specific InputSplitAssigned could not be found.
This class is thread-safe.
| Constructor and Description |
|---|
DefaultInputSplitAssigner() |
| Modifier and Type | Method and Description |
|---|---|
InputSplit |
getNextInputSplit(ExecutionVertex vertex)
Returns the next input split that shall be consumed by the given input vertex.
|
void |
registerGroupVertex(ExecutionGroupVertex groupVertex)
Registers an input vertex with the input split assigner.
|
void |
unregisterGroupVertex(ExecutionGroupVertex groupVertex)
Unregisters an input vertex from the input split assigner.
|
public void registerGroupVertex(ExecutionGroupVertex groupVertex)
InputSplitAssignerregisterGroupVertex in interface InputSplitAssignergroupVertex - the input vertex to registerpublic void unregisterGroupVertex(ExecutionGroupVertex groupVertex)
InputSplitAssignerunregisterGroupVertex in interface InputSplitAssignergroupVertex - the input vertex to unregisterpublic InputSplit getNextInputSplit(ExecutionVertex vertex)
InputSplitAssignergetNextInputSplit in interface InputSplitAssignervertex - the vertex for which the next input split to be consumed shall be determinednull if no more splits shall be consumed by the given
vertexCopyright © 2014 The Apache Software Foundation. All rights reserved.