public final class LocatableInputSplitAssigner extends Object implements InputSplitAssigner
InputSplitAssigner interface for
LocatableInputSplit objects. The locatable input split assigner offers to take the storage location of the
individual locatable input splits into account. It attempts to always assign the splits to vertices in a way that the
data locality is preserved as well as possible.
This class is thread-safe.
| Constructor and Description |
|---|
LocatableInputSplitAssigner() |
| 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.