public class LocalBinaryInputPartitioner extends BinaryInputPartitioner
numSplits
filePath, READ_WHOLE_SPLIT_FLAG, stream
Constructor and Description |
---|
LocalBinaryInputPartitioner(Path filePath,
int recordLen) |
LocalBinaryInputPartitioner(Path filePath,
int nTasks,
int recordLen,
Config cfg) |
Modifier and Type | Method and Description |
---|---|
protected BinaryInputSplit |
createSplit(int num,
Path file,
long start,
long length,
java.lang.String[] hosts) |
InputSplitAssigner |
getInputSplitAssigner(FileInputSplit[] inputSplits)
Return the input split asigner
|
configure, createInputSplits
public LocalBinaryInputPartitioner(Path filePath, int recordLen)
protected BinaryInputSplit createSplit(int num, Path file, long start, long length, java.lang.String[] hosts)
createSplit
in class BinaryInputPartitioner
public InputSplitAssigner getInputSplitAssigner(FileInputSplit[] inputSplits)
InputPartitioner
getInputSplitAssigner
in interface InputPartitioner<byte[],FileInputSplit<byte[]>>
getInputSplitAssigner
in class BinaryInputPartitioner
inputSplits
- the input splits to be assigned