Skip to content

Instantly share code, notes, and snippets.

View matsumana's full-sized avatar

Manabu Matsuzaki matsumana

View GitHub Profile
# Riak KV 0.14 will add key-filters to MapReduce queries. riak-client needs
# a nice and efficient syntax for this feature, please leave a comment with
# the format that you like best.
# For more info on how key-filters work see:
# http://www.slideshare.net/hemulen/riak-mapred-preso
# Preliminaries so you know what we're talking about
client = Riak::Client.new
mr = Riak::MapReduce.new(client)