InputSplit[] splits = new InputSplit[chunks.size()];
int i = 0;
for (DBChunk chunk : chunks) {
SMSInputSplit split = new SMSInputSplit();
split.setPath(p);
split.setRelation(relation);
split.setChunk(chunk);
splits[i] = split;
i++;
}
return splits;
}