incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ran Tavory <ran...@gmail.com>
Subject Re: Retrieving TimeUUID sub-columns in reverse order
Date Sun, 26 Dec 2010 12:01:39 GMT
Roshan, in cassandra.yaml did you define compare_subcolumns_with  for the
SCF?
The subcolumn names are the timeuuid, not the subcolumn values, right?

On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani <roshandawrani@gmail.com>wrote:

> Hi,
>
> I have a super ColumnFamily that has a few super columns, with each having
> a growing list of sub-columns where column name is a TimeUUID, so the
> sub-columns get stored chronologically (oldest to newest)
>
> When I retrieve this data, can I somehow retrieve the sub-columns in
> reverse order - newest first?
>
> I am using RangeSuperSlicesQuery to query the super columns and setting a
> range on it with *reverse = true*, but that only sorts the data by super
> column names.
>
> How can I tell RangeSuperSlicesQuery to get the sub-columns also in reverse
> order?
>
> Thanks.
>
> --
> Roshan
> Blog: http://roshandawrani.wordpress.com/
> Twitter: @roshandawrani <http://twitter.com/roshandawrani>
> Skype: roshandawrani
>



-- 
/Ran

Mime
View raw message