Package mungbean.protocol.command

Examples of mungbean.protocol.command.MapReduceResult.wasOk()


                collection.save(newDoc(new ObjectId(), a));
            }
            MapReduce mapReduce = new MapReduce("function(){emit(this.foo%2==0?\"even\":\"odd\",1); }", "function(k, vals){ var sum=0; for(var i in vals) sum += vals[i]; return sum;}");
            mapReduce.setVerbose(true);
            MapReduceResult result = collection.query(mapReduce, new Query());
            specify(result.wasOk());
        }

    }

    private Map<String, Object> newDoc(final ObjectId id, final Object value) {
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.