incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Holstad <erikhols...@gmail.com>
Subject Re: Reverse sort order comparator?
Date Tue, 02 Feb 2010 17:29:12 GMT
Thanks guys!
So I want to use sliceRange but thinking about using the count parameter.
For example give me
the first x columns, next call I would like to call it with a start value
and a count.

If I was to use the reverse param in sliceRange I would have to fetch all
the columns first, right?


On Tue, Feb 2, 2010 at 9:23 AM, Brandon Williams <driftx@gmail.com> wrote:

> On Tue, Feb 2, 2010 at 11:21 AM, Erik Holstad <erikholstad@gmail.com>wrote:
>
>> Hey!
>> I'm looking for a comparator that sort columns in reverse order on for
>> example bytes?
>> I saw that you can write your own comparator class, but just thought that
>> someone must have done that already.
>
>
> When you get_slice, just set reverse to true in the SliceRange and it will
> reverse the order.
>
> -Brandon
>



-- 
Regards Erik

Mime
View raw message