//DEBUG
//System.out.println("SPLIT! " + idList.size() + " " + idList.get(0) + " , " + outList.size());
BasicDBObject mongoQuery = new BasicDBObject(DocumentPojo._id_,
new BasicDBObject(DbManager.in_, idList));
outList.add((InputSplit)new InfiniteMongoInputSplit(conf.getInputURI(), conf.getInputKey(),
mongoQuery, conf.getFields(), conf.getSort(), 0, 0, conf.isNoTimeout()));
idList = null;
}//TESTED
numDocs++;
if (numDocs >= maxDocs) {
break;
}//TESTED
}
if (numDocs >= maxDocs) {
break;
}//TESTED
}//(end loop over hits)
if (null != idList) {
//DEBUG
//System.out.println("SPLIT! " + idList.size() + " " + idList.get(0) + " , " + outList.size());
BasicDBObject mongoQuery = new BasicDBObject(DocumentPojo._id_,
new BasicDBObject(DbManager.in_, idList));
outList.add((InputSplit)new InfiniteMongoInputSplit(conf.getInputURI(), conf.getInputKey(),
mongoQuery, conf.getFields(), conf.getSort(), 0, 0, conf.isNoTimeout()));
}//TESTED
}
return outList;
}//TESTED