incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: Iterating over all keys in column family with LongType key
Date Mon, 18 Mar 2013 17:08:21 GMT
> This strategy, however, doesn't seem to work with LongFamily.  I've tried
> various combinations of key ranges (0, 0), (1, 0), (0, Long.MaxValue), but
> none iterate over the entire family.  Any ideas?
What results do you see?
Have you tried Long.MinValue to Long.MaxValue ? 

If you are just starting out consider using this client, it's getting a lot of active development
https://github.com/Netflix/astyanax

Finally, we are trying to direct client specific questions to the client mailing list. Please
ask there next time. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 15/03/2013, at 8:17 AM, sj.climber <sj.climber@gmail.com> wrote:

> Hi,
> 
> I have two column families, one keyed by UTF8Type (let's call it
> StringFamily), the other by LongType (LongFamily).  Both are stored in a
> keyspace using the RandomPartitioner.  I need to iterate over all columns in
> both families, although order does not matter.
> 
> Iterating over StringFamily is easy.  I'm currently using Pelops.  I request
> pages of 1000 results, with the first key slice specifying the following:
> Selector.newKeyRange("", "", PAGE_SIZE);
> For every page thereafter, I replace the first argument with the key of the
> last item returned in the previous page.
> 
> This strategy, however, doesn't seem to work with LongFamily.  I've tried
> various combinations of key ranges (0, 0), (1, 0), (0, Long.MaxValue), but
> none iterate over the entire family.  Any ideas?
> 
> Thanks in advance for your help!
> 
> 
> 
> --
> View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Iterating-over-all-keys-in-column-family-with-LongType-key-tp7586373.html
> Sent from the cassandra-user@incubator.apache.org mailing list archive at Nabble.com.


Mime
View raw message