"Utility" functions

Charlie Voiselle cvoiselle at basho.com
Fri Feb 8 10:51:03 EST 2013


As mentioned in the Riak MapReduce documentation, you can find more information about the pre-built MR jobs here:

https://github.com/basho/riak_kv/blob/master/src/riak_kv_mapreduce.erl  -- Erlang Module that contains all of the pre-built Erlang MapReduce Phases
https://github.com/basho/riak_kv/blob/master/priv/mapred_builtins.js -- JavaScript source of the pre-built JavaScript MapReduce phases

Hope this helps,
Charle Voiselle

On Feb 8, 2013, at 10:41 AM, rkevinburton at charter.net wrote:

> I was looking at CorrugatedIrons website and I see code like:
> var query = new RiakMapReduceQuery()
>                 .Inputs("BucketName")
>                 .MapJs(m => m.Source(@"function(o){return[1];}"))
>                 .ReduceJs(m => m.Name(@"Riak.reduceSum").Keep(true));
> I am assuming that functions like "Riak.reduceSum" are general utility functions that are part of the Riak distro. Is there a list of these somewhere documenting their use and purpose? There seems to be both JavaScript and Erlang methods. I would be interested in both. Thank you.
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130208/563a4558/attachment.html>

More information about the riak-users mailing list