public class FileSplitUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static InputSplit[] |
autoCombineSplits(JobConf conf,
java.util.Vector<FileSplit> inputSplits,
int numSplits)
Combines a number of input splits into the given numSplits.
|
static InputSplit |
combineFileSplits(JobConf conf,
FileSplit split1,
FileSplit split2)
Combines two file splits into a CombineFileSplit.
|
static InputSplit |
combineFileSplits(JobConf conf,
java.util.List<FileSplit> splits,
int startIndex,
int count)
Combines a number of file splits into one CombineFileSplit.
|
static java.lang.String[] |
prioritizeLocations(java.util.Vector<java.lang.String> vlocations)
Takes a list of locations as a vector, and returns a unique array of
locations where locations on the head are more frequent in the original
vector than the ones on the tail.
|
public static InputSplit combineFileSplits(JobConf conf, java.util.List<FileSplit> splits, int startIndex, int count) throws java.io.IOException
splits
- startIndex
- count
- java.io.IOException
public static InputSplit combineFileSplits(JobConf conf, FileSplit split1, FileSplit split2) throws java.io.IOException
conf
- split1
- split2
- java.io.IOException
public static java.lang.String[] prioritizeLocations(java.util.Vector<java.lang.String> vlocations)
vlocations
- - A vector of locations with possible duplicatespublic static InputSplit[] autoCombineSplits(JobConf conf, java.util.Vector<FileSplit> inputSplits, int numSplits) throws java.io.IOException
conf
- inputSplits
- numSplits
- java.io.IOException