How do I lookup a linked object from within a map function?

Jody Fanning jodyfanning at gmail.com
Fri Oct 5 12:40:50 EDT 2012


I'm not sure, but at least there is this sort of thing as an option. It
is a solution for collecting linked objects during map phase and
carrying the data forward to another map.

http://basho.com/blog/technical/2010/04/14/practical-map-reduce:-forwarding-and-collecting/

Regards,
Jody

On 29.09.2012 02:56, Darrel Grant wrote:
> Can it be done?
>
>
> Something like:
>
> function(value, keydata, arg) {
>     var data = Riak.mapValuesJson(value)[0];
>     linked = Riak.getLinks(keydata);
>
>     if (linked[0] !== undefined) {
>         var thing_i_want = linked[0].field;
>     }
>
> }
>
>
> ?
>
>
> _______________________________________________
> 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/20121005/09f3485c/attachment.html>


More information about the riak-users mailing list