Hi Jon,

The object passed to a JavaScript map function is documented here:
http://wiki.basho.com/display/RIAK/MapReduce#MapReduce-Mapphasefunctions

There is also a logging function available (ejsLog):
http://wiki.basho.com/display/RIAK/MapReduce#MapReduce-DebuggingJavascriptMapReducePhases

Thanks,
Dan

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
d...@basho.com


On Tue, Oct 19, 2010 at 2:20 PM, Jon Brisbin <j...@jbrisbin.com> wrote:

> Couldn't find much on this out in the wild, so I'm assuming I'm not looking
> for the right things.
>
> I'm trying to figure out Riak's MapReduce using the Ruby client. I can't
> seem to get even the simplest map/reduce to work:
>
> function(v){ var o = JSON.parse(v.values[0].data); return [o]; }
>
> So I thought I'd log what I was doing inside this function. I could not,
> for the life of me, find a reference for the available Javascript functions,
> objects, etc... that are available so I can do some debugging.
>
> What tools are available to me within a map/reduce function? There seems to
> be some conflicting information, particularly regarding a "Riak" object that
> I've seen referenced online. Couldn't find any docs on it, though.
>
> Thanks ahead of time!
>
> (sitting around waiting on SpringOne 2GX to start)
>
> J. Brisbin
> http://jbrisbin.com/
>
>
>
>
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to