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