Streaming keys with the Erlang client

István leccine at gmail.com
Fri Aug 22 11:36:04 EDT 2014


Hi Luc,

Thanks for the URL, it is indeed really nice and covers all the use cases.
Thank you!

Regards,
Istvan


On Thu, Aug 21, 2014 at 10:43 AM, Luc Perkins <lperkins at basho.com> wrote:

> István,
>
> For future reference, the Riak 2.0 docs have client-library-specific code
> samples. The *Querying* section of this doc has Erlang samples, including
> an example for how to stream:
>
> http://docs.basho.com/riak/2.0.0/dev/using/2i/#Querying
>
> Luc
>
>
> On Thu, Aug 21, 2014 at 10:38 AM, István <leccine at gmail.com> wrote:
>
>> Let me answer my own question, yes all of these are supported in the
>> Erlang client.
>>
>> The function I was looking for is get_index_eq:
>>
>>
>> http://basho.github.io/riak-erlang-client/riakc_pb_socket.html#get_index_eq-5
>>
>> Regards,
>> Istvan
>>
>>
>> On Thu, Aug 21, 2014 at 10:32 AM, István <leccine at gmail.com> wrote:
>>
>>> Hi guys,
>>>
>>> I was wondering if streaming the keys using 2i would be possible. I
>>> guess any way of limiting the number of keys returned would be good.
>>>
>>> According to the documentation there few options:
>>>
>>> http://docs.basho.com/riak/latest/dev/using/2i/#Examples
>>>
>>> - streaming the keys
>>> - pagination with max_results
>>>
>>> Is any of these available in the Erlang client?
>>>
>>> Thank you in advance,
>>> Istvan
>>>
>>> --
>>> the sun shines for all
>>>
>>>
>>>
>>
>>
>> --
>> the sun shines for all
>>
>>
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>


-- 
the sun shines for all
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140822/cf229f70/attachment.html>


More information about the riak-users mailing list