Created
October 29, 2010 19:39
-
-
Save duff/654246 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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