Skip to content

Instantly share code, notes, and snippets.

@duff
Created October 29, 2010 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duff/654246 to your computer and use it in GitHub Desktop.
Save duff/654246 to your computer and use it in GitHub Desktop.
# Using Sean's work on some built-ins: https://gist.github.com/63d3b5edd2ec011532ea
class Account
include Ripple::Document
property :charged_for_storage_at, Time
end
mr = Riak::MapReduce.new(Ripple.client).
add("accounts").
map("Ripple.filterByConditions", :arg => {:charged_for_storage_at => { "<" => 1.month.ago }}).
map("Ripple.mapIdentity", :keep => true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment