Package com.mongodb

Examples of com.mongodb.BasicDBObject.values()


        _s0_docCountHint.put(DocCountPojo.doccount_, 1);
      }
      DBCursor dbc = DbManager.getDocument().getCounts().find(query, _s0_docCountFields).hint(_s0_docCountHint);
      while (dbc.hasNext()) {
        BasicDBObject dbo = (BasicDBObject) dbc.next();
        Iterator<?> it = dbo.values().iterator();
        if (it.hasNext()) {
          nDocCount += (double)((Long)it.next()).longValue(); // (from _s0_docCountFields, doccount is only return variable)
        }
      }
      if (0 == nDocCount) { // (Probably shouldn't happen if a harvest has occurred, just don't bomb out
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.