Problem with r_object and riak-erlang-client compatibility

Alex Turkin snowwlex at
Wed May 14 07:24:35 EDT 2014

Hello guys, 

I have following case:

I get the list of objects from riak by mapreduce, and then want to change
some of them, and update it via riakc_pb_socket:put.

But the problem is, that 

    [{map, {modfun, riak_kv_mapreduce, map_identity}, undefined, true}] 

returns list of #r_object{}, when riakc_pb_socket:put requires #riakc_obj{}. 

What's the best way to solve the problem? 
Is there some convenient way to do it rather than writing my own convertion
function? I don't want to be dependent on riak internal data structures in
my code...

PS I've seen the thread with the same question
but there's no appropriate solution for me.

View this message in context:
Sent from the Riak Users mailing list archive at

More information about the riak-users mailing list