Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mapred = SON()
- mapred["mapreduce"] = "data"
- mapred['map']="function(){this.friends.forEach(function(z){emit( z , { count : 1 } );});};"
- mapred['reduce']="function( key , values ){var total = 0; for ( var i=0; i<values.length; i++ ){total += values[i].count;}return { count : total };};"
Add Comment
Please, Sign In to add comment