You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Chris Dean <ct...@sokitomi.com> on 2010/04/21 00:12:39 UTC

Using get_range_slices

I'd like to use get_range_slices to pull all the keys from a small CF
with 10,000 keys.  I'd also like to get them in chunks of 100 at a time.
Is there a way to do that?

I thought I could set start_token and end_token in KeyRange, but I can't
figure out what the intial start_token should be.

Cheers,
Chris Dean

Re: Using get_range_slices

Posted by Jonathan Ellis <jb...@gmail.com>.
you should use keys, not tokens.  start with empty string.

On Tue, Apr 20, 2010 at 5:12 PM, Chris Dean <ct...@sokitomi.com> wrote:
> I'd like to use get_range_slices to pull all the keys from a small CF
> with 10,000 keys.  I'd also like to get them in chunks of 100 at a time.
> Is there a way to do that?
>
> I thought I could set start_token and end_token in KeyRange, but I can't
> figure out what the intial start_token should be.
>
> Cheers,
> Chris Dean
>