public class LocalCSVInputPartitioner extends CSVInputPartitioner<java.lang.String>
config, filePath, numSplits
Constructor and Description |
---|
LocalCSVInputPartitioner(Path filePath,
int numTasks,
Config config) |
LocalCSVInputPartitioner(Path filePath,
int numTasks,
int datasize,
Config config) |
Modifier and Type | Method and Description |
---|---|
protected CSVInputSplit |
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 LocalCSVInputPartitioner(Path filePath, int numTasks, Config config)
protected CSVInputSplit createSplit(int num, Path file, long start, long length, java.lang.String[] hosts)
createSplit
in class CSVInputPartitioner<java.lang.String>
public InputSplitAssigner getInputSplitAssigner(FileInputSplit[] inputSplits)
InputPartitioner
getInputSplitAssigner
in interface InputPartitioner<java.lang.String,FileInputSplit<java.lang.String>>
getInputSplitAssigner
in class CSVInputPartitioner<java.lang.String>
inputSplits
- the input splits to be assigned