@Public public final class LocatableInputSplitAssigner extends Object implements InputSplitAssigner
| Constructor and Description |
|---|
LocatableInputSplitAssigner(Collection<LocatableInputSplit> splits) |
LocatableInputSplitAssigner(LocatableInputSplit[] splits) |
| Modifier and Type | Method and Description |
|---|---|
LocatableInputSplit |
getNextInputSplit(String host,
int taskId)
Returns the next input split that shall be consumed.
|
int |
getNumberOfLocalAssignments() |
int |
getNumberOfRemoteAssignments() |
public LocatableInputSplitAssigner(Collection<LocatableInputSplit> splits)
public LocatableInputSplitAssigner(LocatableInputSplit[] splits)
public LocatableInputSplit getNextInputSplit(String host, int taskId)
InputSplitAssignergetNextInputSplit in interface InputSplitAssignerhost - 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()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.