incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Williams <dri...@gmail.com>
Subject Re: Reverse sort order comparator?
Date Tue, 02 Feb 2010 17:23:52 GMT
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

Mime
View raw message