Package com.findwise.hydra.mongodb

Examples of com.findwise.hydra.mongodb.MongoDocumentIO.prepare()


    StatusUpdater updater = new StatusUpdater(new MongoConnector(mongoConfiguration));
    GridFS documentFs = new GridFS(db);

    MongoDocumentIO io = new MongoDocumentIO(db, concern, documentsToKeep,
      oldDocsMaxSizeMB, updater, documentFs);
    io.prepare();
    return io;
  }

  private void uploadJar(String jarFileName) {
    InputStream resourceAsStream = getClass().getResourceAsStream("/" + jarFileName);
View Full Code Here


    StatusUpdater updater = new StatusUpdater(new MongoConnector(conf));
    GridFS documentFs = new GridFS(db);

    MongoDocumentIO io = new MongoDocumentIO(db, concern, documentsToKeep,
        oldDocsMaxSizeMB, updater, documentFs);
    io.prepare();

    MongoDocument document = new MongoDocument(args[args.length-1]);
    io.insert(document);
    System.out.println("Added document");
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.