public class LocalFixedInputPartitioner<T> extends FixedInputPartitioner<T>
config, filePath, stream
Constructor and Description |
---|
LocalFixedInputPartitioner(Path filePath,
int numTasks) |
LocalFixedInputPartitioner(Path filePath,
int numTasks,
Config config,
int datasize) |
Modifier and Type | Method and Description |
---|---|
protected TextInputSplit |
createSplit(int num,
Path file,
long start,
long length,
java.lang.String[] hosts) |
OrderedInputSplitAssigner<T> |
getInputSplitAssigner(FileInputSplit<T>[] inputSplits)
Return the input split asigner
|
configure, createInputSplits
public LocalFixedInputPartitioner(Path filePath, int numTasks)
protected TextInputSplit createSplit(int num, Path file, long start, long length, java.lang.String[] hosts)
createSplit
in class FixedInputPartitioner<T>
public OrderedInputSplitAssigner<T> getInputSplitAssigner(FileInputSplit<T>[] inputSplits)
InputPartitioner
getInputSplitAssigner
in interface InputPartitioner<T,FileInputSplit<T>>
getInputSplitAssigner
in class FixedInputPartitioner<T>
inputSplits
- the input splits to be assigned