incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <>
Subject Re: Filter on row iterator
Date Sun, 08 May 2011 21:36:18 GMT
AFAIK Token suport is there for the hadoop integration and is not something you should normally
need to use.

It will be easier to use a KeyRange with a start_key if you have a consistent key format,
with the most significant discriminator first. e.g. <category>/id

Then you can use a range start such as  foo/

If you are using the RandomParitioner don't forget

Hope that helps. 
Aaron Morton
Freelance Cassandra Developer

On 6 May 2011, at 22:34, wrote:

> Hi all,
> I have a column family with about 300 rows. Rows name are of 2 categories:
> number (eg: 12345)
> e_number (eg: e_12345)
> is there any way to extract only rows that are numbers?
> For the moment I'm iterating over all rows with a KeyRange and filtering 
> client-side but I don't like this solution.
> I've seen that KeyRange can be created using tokens instead of keys but I 
> don't understand how they works and did not find any working example.
> (Java/Pelops/Cassandra 0.7.5)
> Carlo

View raw message