public InputSplit[] getSplits(JobConf jc, int ignored) throws IOException {
Args args = (Args) Utils.getObject(jc, ARGS_CONF);
FileSystem fs = Utils.getFS(args.inputDirHdfs, jc);
DomainStore store = new DomainStore(fs, args.inputDirHdfs);
String versionPath;
if (args.version == null) {
versionPath = store.mostRecentVersionPath();
} else {
versionPath = store.versionPath(args.version);
}
DomainSpec spec = store.getSpec();
List<InputSplit> ret = new ArrayList<InputSplit>();
for (int i = 0; i < spec.getNumShards(); i++) {
String shardPath = versionPath + "/" + i;
if (fs.exists(new Path(shardPath))) {
ret.add(new ElephantInputSplit(new Path(shardPath).makeQualified(fs).toString(), spec, jc));