incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renato Marroquín Mogrovejo <renatoj.marroq...@gmail.com>
Subject Re: Usage of getKeyRange method
Date Tue, 28 May 2013 04:45:50 GMT
Thanks Andrey! I will try that.


Renato M.



2013/5/24 Andrey Ilinykh <ailinykh@gmail.com>

> you can specify startKey/endKey only if you use ByteOrederedPartitioner.
> In this case startToken/endToken are null.
> I guess (but not sure) with RandomPartitioner you have to specify
> startToken/endToken, keys are null then.
>
> Thank you,
>   Andrey
>
>
> On Fri, May 24, 2013 at 6:53 AM, Renato Marroquín Mogrovejo <
> renatoj.marroquin@gmail.com> wrote:
>
>> Hi all,
>>
>> I am trying to migrate some some Hector's RangeSlicesQuery to Astyanax,
>> but the only method I have found is getKeyRange[1] which in turn has four
>> parameters  startKey,endKey, startToken,  endToken, and count.
>> The thing is that I am not sure what are the startToken and endToken
>> parameters used for if I am already controlling the range with the startKey
>> and endKey  parameters. Could anyone show me some light on this manner
>> please?
>> Thanks in advance.
>>
>>
>> Renato M.
>>
>> [1]
>> http://www.srcrr.com/java/astyanax/1.0.5/reference/com/netflix/astyanax/thrift/ThriftColumnFamilyQueryImpl-source.html
>>
>
>

Mime
View raw message