Some notes from a workshop on CouchDB and Riak diving into their support for MapReduce. While the code might not look the same, if you pay close attention you’ll notice it is almost identical. Except Riak, MapReduce functions need to “deserialize” data.
In case you cannot see the code, please try refreshing the page. It looks like sometimes the syntax highlighter doesn’t load correctly :-(.