MapReduce: returned value can't be processed by riakc_obj:get_value

Buri Arslon buriwoy at gmail.com
Tue Mar 27 19:05:59 EDT 2012


I think I got it :) I should use riak_object:get_value

Thanks anyway,
-- buriwoy

On Tue, Mar 27, 2012 at 4:38 PM, Buri Arslon <buriwoy at gmail.com> wrote:

> Hi everyone!
>
> I was learning MapReduce in Riak and encountered some problems.
>
> The map function that received Value wasn't able to process it by
> riakc_obj:get_value. I checked the value and found out that it was not
> proper riakc object.
>
> riakc_obj:new() returns a tuple where first element is riakc_obj atom. But
> the Value that the map function receives has 'r_object' atom.
>
> What am I doing wrong? Are there any other built-in functions to process
> the value in a map function?
>
> Thanks!
>
> -- buriwoy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120327/f32beb66/attachment.html>


More information about the riak-users mailing list