You can leave the end key empty. 1) Start with "startkey" = "" 2) Next iteration start with "startkey" = "last key of the previous batch" 3) Keep on going until you ran out of results
2012/2/22 Rafael Almeida <almeida...@yahoo.com> > >________________________________ > > From: Franc Carter <franc.car...@sirca.org.au> > >To: user@cassandra.apache.org > >Sent: Wednesday, February 22, 2012 9:24 AM > >Subject: Re: List all keys with RandomPartitioner > > > > > >On Wed, Feb 22, 2012 at 8:47 PM, Flavio Baronti <f.baro...@list-group.com> > wrote: > > > >I need to iterate over all the rows in a column family stored with > RandomPartitioner. > >>When I reach the end of a key slice, I need to find the token of the > last key in order to ask for the next slice. > >>I saw in an old email that the token for a specific key can be recoveder > through FBUtilities.hash(). That class however is inside the full Cassandra > jar, not inside the client-specific part. > >>Is there a way to iterate over all the keys which does not require the > server-side Cassandra jar? > >> > > > > > >Does this help ? > > > > > > http://wiki.apache.org/cassandra/FAQ#iter_world > > > I don't get it. It says to use the last key read as start key, but what > should be used as end key? >