public class LocalCompleteArrowInputPartitioner extends CompleteArrowInputPartitioner<java.lang.String>
config, filePath, numSplits, READ_WHOLE_SPLIT_FLAG, stream
Constructor and Description |
---|
LocalCompleteArrowInputPartitioner(Path filePath,
int numTasks,
Config config) |
LocalCompleteArrowInputPartitioner(Path filePath,
int numTasks,
int datasize,
Config config) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Config parameters)
Configures this input format.
|
FileInputSplit<java.lang.String>[] |
createInputSplits(int minNumSplits)
It creates the split for the complete file.
|
protected ArrowInputSplit |
createSplit(int num,
Path file,
long start,
long length,
java.lang.String[] hosts) |
InputSplitAssigner |
getInputSplitAssigner(FileInputSplit[] inputSplits)
Return the input split asigner
|
public LocalCompleteArrowInputPartitioner(Path filePath, int numTasks, Config config)
protected ArrowInputSplit createSplit(int num, Path file, long start, long length, java.lang.String[] hosts)
createSplit
in class CompleteArrowInputPartitioner<java.lang.String>
public InputSplitAssigner getInputSplitAssigner(FileInputSplit[] inputSplits)
InputPartitioner
inputSplits
- the input splits to be assignedpublic void configure(Config parameters)
InputPartitioner
This method is always called first on a newly instantiated input format.
configure
in interface InputPartitioner<java.lang.String,FileInputSplit<java.lang.String>>
configure
in class CompleteArrowInputPartitioner<java.lang.String>
parameters
- The configuration with all parameters
(note: not the Flink config but the TaskConfig).public FileInputSplit<java.lang.String>[] createInputSplits(int minNumSplits)
CompleteArrowInputPartitioner
createInputSplits
in interface InputPartitioner<java.lang.String,FileInputSplit<java.lang.String>>
createInputSplits
in class CompleteArrowInputPartitioner<java.lang.String>
minNumSplits
- Number of minimal input splits, as a hint.