incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Williams <>
Subject Re: Reverse sort order comparator?
Date Tue, 02 Feb 2010 17:35:00 GMT
On Tue, Feb 2, 2010 at 11:29 AM, Erik Holstad <> wrote:

> 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?

If you pass reverse as true, then instead of getting the first x columns,
you'll get the last x columns.  If you want to head backwards toward the
beginning, you can pass the first column as the end value.


View raw message