public class LocatableInputSplitAssigner<T> extends java.lang.Object implements InputSplitAssigner<T>
Constructor and Description |
---|
LocatableInputSplitAssigner(java.util.Collection<LocatableInputSplit> splits) |
LocatableInputSplitAssigner(LocatableInputSplit[] splits) |
Modifier and Type | Method and Description |
---|---|
LocatableInputSplit<T> |
getNextInputSplit(java.lang.String host,
int taskId)
Returns the next input split that shall be consumed.
|
int |
getNumberOfLocalAssignments() |
int |
getNumberOfRemoteAssignments() |
public LocatableInputSplitAssigner(java.util.Collection<LocatableInputSplit> splits)
public LocatableInputSplitAssigner(LocatableInputSplit[] splits)
public LocatableInputSplit<T> getNextInputSplit(java.lang.String host, int taskId)
InputSplitAssigner
getNextInputSplit
in interface InputSplitAssigner<T>
host
- The host address of split requesting task.taskId
- The id of the split requesting task.null
if no more splits remain.public int getNumberOfLocalAssignments()
public int getNumberOfRemoteAssignments()