sample queries
[NoSQL-toys.git] / riak / query / map-high.json
diff --git a/riak/query/map-high.json b/riak/query/map-high.json
new file mode 100644 (file)
index 0000000..444c015
--- /dev/null
@@ -0,0 +1,10 @@
+{"inputs":[["goog","2010-01-04"],
+           ["goog","2010-01-05"],
+           ["goog","2010-01-06"],
+           ["goog","2010-01-07"],
+           ["goog","2010-01-08"]],
+ "query":[{"map":{"language":"javascript",
+                  "source":"function(value,keyData,arg){ var data = Riak.mapValuesJson(value)[0]; return [data.High];}"
+                 }},
+          {"reduce":{"language":"javascript","name":"Riak.reduceMax","keep":true}}]
+}