Re: CRDT-map usage in erlang mapreduce via HTTP

2015-01-06 Thread Russell Brown
Hi Cezary, The keys in a map are pairs, {FieldName, FieldType}, and when map reducing they haven’t been through the API layer to make the module names friendly, so rather than {my_name, set} you have {may_name, riak_dt_orswot}. For example M = riak_kv_crdt:map_value(V). [{{<<"m1">>,ria

CRDT-map usage in erlang mapreduce via HTTP

2015-01-04 Thread Cezary Kosko
Hi, I wanted to ask how you use a map data type in mapreduce. Calling riak_kv_crdt:map_value/1 seems to be but the start, I can't seem to be able to extract particular values - proplists:get_value/2 returns undefined for virtually every possible input, so right now I've localized the keys' index in