2,209
社区成员
发帖
与我相关
我的任务
分享
String map = "function(){emit( '1',{'v':this.value}); }";
String reduce = "function(key, values){ var count=0;var total=0;for(var i in values){ total=+values[i].v;count++; }
return {'count':count,'total':total};}";
{ "result" : "t_1326391379413" , "timeMillis" : 118 , "timing" :
{ "mapTime" : 72 , "emitLoop" : 107 , "reduceTime" : 19 , "mode" : "mixed" , "total" : 118} , "counts" :
{ "input" : 1500 , "emit" : 1500 , "reduce" : 2 , "output" : 1} , "ok" : 1.0}