riak-fuse.rb
def matching_keys(regex)
    results = Riak::MapReduce.new(client).add(bucket).map("function(value,keyData,arg) {
                     var re = new RegExp(arg);
                     return value.key.match(re) ? [value.key] : [];
                   }", :keep => true, :arg => regex).run
  end
# Maybe use this to find subsets of keys? TODO
Maybe use this to find subsets of keys. TODO
Maybe use this to find subsets of keys . TODO
def matching_keys(regex)
    results = Riak::MapReduce.new(client).add(bucket).map("function(value,keyData,arg) {
                     var re = new RegExp(arg);
                     return value.key.match(re) ? [value.key] : [];
                   }", :keep => true, :arg => regex).run
  end
def matching_keys ( regex ) results = Riak :: MapReduce . new ( client ) . add ( bucket ) . map ( "function(value,keyData,arg) {
                     var re = new RegExp(arg);
                     return value.key.match(re) ? [value.key] : [];
                   }" , :keep => true , :arg => regex ) . run end
Maybe use this to find subsets of keys?
Maybe use this to find subsets of keys?
regex