Package mungbean.protocol.command

Examples of mungbean.protocol.command.Group


        }

        public void runGroup(DBCollection<Map<String, Object>> collection) {
            HashMap<String, Double> initialValues = new HashMap<String, Double>();
            initialValues.put("foo", 0D);
            List<Map<String, Object>> result = collection.query(new Group(new String[] { "foo" }, initialValues, "function(obj, prev){ prev.csum=5; }"), new Query());
            specify(result.get(0).get("csum"), does.equal(5D));
        }
View Full Code Here

TOP

Related Classes of mungbean.protocol.command.Group

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.