public interface Partitioner
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
split(java.lang.String filePath,
java.lang.String tmpDir,
int numParts)
Splits an input .CSV file into a specified number of partitions.
|
java.lang.String[] |
split(java.lang.String filePath,
java.lang.String tmpDir,
int numParts,
java.lang.String encoding)
Splits an input shapefile into a specified number of partitions.
|
java.lang.String[] split(java.lang.String filePath, java.lang.String tmpDir, int numParts) throws java.io.IOException
filePath
- Path to the input .CSV filetmpDir
- Folder to hold the output partitions (i.e., files with the same extension)numParts
- Number of partitions to be createdjava.io.IOException
java.lang.String[] split(java.lang.String filePath, java.lang.String tmpDir, int numParts, java.lang.String encoding) throws java.io.IOException
filePath
- Path to the input shapefiletmpDir
- Folder to hold the output partitions (i.e., files with the same extension)numParts
- Number of partitions to be createdjava.io.IOException