public class LocalityAwareInputSplitsMasterOrganizer extends Object implements InputSplitsMasterOrganizer
Constructor and Description |
---|
LocalityAwareInputSplitsMasterOrganizer(List<byte[]> serializedSplits,
List<org.apache.hadoop.mapreduce.InputSplit> splits,
List<WorkerInfo> workers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getSerializedSplitFor(int workerTaskId) |
public LocalityAwareInputSplitsMasterOrganizer(List<byte[]> serializedSplits, List<org.apache.hadoop.mapreduce.InputSplit> splits, List<WorkerInfo> workers)
serializedSplits
- Serialized splitssplits
- Splitsworkers
- List of workerspublic byte[] getSerializedSplitFor(int workerTaskId)
getSerializedSplitFor
in interface InputSplitsMasterOrganizer
workerTaskId
- Id of worker requesting splitCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.