"Utility" functions

Jeremiah Peschka jeremiah.peschka at gmail.com
Fri Feb 8 10:49:09 EST 2013


Built-in Javascript functions are provided in:
https://github.com/basho/riak_kv/blob/master/priv/mapred_builtins.js and
https://github.com/basho/erlang_js/blob/master/priv/json2.js

Built-in Erlang functions are in
https://github.com/basho/riak_kv/blob/master/src/riak_kv_mapreduce.erl

---
Jeremiah Peschka - Founder, Brent Ozar Unlimited
MCITP: SQL Server 2008, MVP
Cloudera Certified Developer for Apache Hadoop


On Fri, Feb 8, 2013 at 7: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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130208/0b5d3b24/attachment.html>


More information about the riak-users mailing list