cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Schröder <skro...@gmail.com>
Subject Re: List all keys with RandomPartitioner
Date Wed, 22 Feb 2012 11:06:02 GMT
I had to port that piece of code to C#, and it's just a few lines of code,
so just write your own. Here's the original so you can see what it does:
http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=src/java/org/apache/cassandra/utils/FBUtilities.java;hb=refs/heads/trunk


/Henrik

On Wed, Feb 22, 2012 at 10:47, Flavio Baronti <f.baronti@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?
>
> Thanks
> Flavio
>

Mime
View raw message