Package com.findwise.hydra.mongodb

Examples of com.findwise.hydra.mongodb.MongoQuery


    // Next, we add three documents with a field "externalDocId" to let us identify them
    Set<String> externalDocumentIds = createDocuments(3);

    // Now we just have to wait for all three documents to end up in the "oldDocuments" repository
    MongoTailableIterator inactiveIterator = mongoConnector.getDocumentReader().getInactiveIterator(new MongoQuery());

    Set<String> finishedDocumentIds = new HashSet<String>();
    while(!finishedDocumentIds.equals(externalDocumentIds)) {
      if(inactiveIterator.hasNext()) {
        MongoDocument finishedDocument = inactiveIterator.next();
View Full Code Here

TOP

Related Classes of com.findwise.hydra.mongodb.MongoQuery

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.