Package com.ikanow.infinit.e.data_model.custom

Examples of com.ikanow.infinit.e.data_model.custom.InfiniteMongoInputSplit


            //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
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.data_model.custom.InfiniteMongoInputSplit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.