Using the Local Client from a riak-attach session

Daniil Churikov ddosia at gmail.com
Thu Jan 17 22:26:36 EST 2013


    {ok, C} = riak:local_client(),                                                                                                                             
    {ok, Keys} = C:get_index(                                                                                                                          
        <<"bucket_name">>, {eq, <<"key_name_bin">>, KeyVal}                                                                                                         
    ),                                                                                                                                                         
                                                                                                                                                               
    {ok, Data} = C:mapred(                                                                                                                            
        [{<<"bucket_name">>, K} || K <- Keys],                                                                                                           
        [riak_kv_mapreduce:map_identity(true)]                                                                                                                 
    ).



--
View this message in context: http://riak-users.197444.n3.nabble.com/Using-the-Local-Client-from-a-riak-attach-session-tp4026572p4026577.html
Sent from the Riak Users mailing list archive at Nabble.com.




More information about the riak-users mailing list