public static List<InputSplit> calculateSplits_phase2(InfiniteMongoConfig conf, BasicDBObject confQuery, boolean alwaysUseChunks, boolean newShardScheme, Integer splitDocCount)
{
alwaysUseChunks &= (conf.getMaxSplits() != MAX_SPLITS);
// (in standalone mode, never use chunks)
MongoURI uri = conf.getInputURI();
DBCollection coll = InfiniteMongoConfigUtil.getCollection(uri);
if (conf.getLimit() > 0) {
return calculateManualSplits(conf, confQuery, 1, conf.getLimit(), coll);
}
else