@Internal public class ReplicatingInputSplitAssigner extends Object implements InputSplitAssigner
Constructor and Description |
---|
ReplicatingInputSplitAssigner(Collection<InputSplit> splits) |
ReplicatingInputSplitAssigner(InputSplit[] splits) |
Modifier and Type | Method and Description |
---|---|
InputSplit |
getNextInputSplit(String host,
int taskId)
Returns the next input split that shall be consumed.
|
void |
returnInputSplit(List<InputSplit> splits,
int taskId)
Return the splits to assigner if the task failed to process it.
|
public ReplicatingInputSplitAssigner(Collection<InputSplit> splits)
public ReplicatingInputSplitAssigner(InputSplit[] splits)
public InputSplit getNextInputSplit(String host, int taskId)
InputSplitAssigner
getNextInputSplit
in interface InputSplitAssigner
host
- The host address of split requesting task.taskId
- The id of the split requesting task.null
if no more splits remain.public void returnInputSplit(List<InputSplit> splits, int taskId)
InputSplitAssigner
returnInputSplit
in interface InputSplitAssigner
splits
- The list of input splits to be returned.taskId
- The id of the task that failed to process the input splits.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.