public SqoopHCatInputSplit(List<InputSplit> splits) {
hCatSplits = new ArrayList<HCatSplit>();
Set<String> locations = new HashSet<String>();
for (int i = 0; i < splits.size(); ++i) {
HCatSplit hsSplit = (HCatSplit) splits.get(i);
hCatSplits.add(hsSplit);
this.inputLength += hsSplit.getLength();
locations.addAll(Arrays.asList(hsSplit.getLocations()));
}
this.hCatLocations = locations.toArray(new String[0]);
}