cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Long type column names in reverse order
Date Fri, 20 Apr 2012 18:16:52 GMT
I think you can drop the compiler since that feature already exists.

http://thelastpickle.com/2011/10/03/Reverse-Comparators/


On Fri, Apr 20, 2012 at 12:57 PM, Tarun Gupta
<tarun.gupta@technogica.com> wrote:
> Hi,
>
> My requirements is to get retrieve column values, sorted by column names in
> reverse order (column names are 'long' type). The way I am trying to
> implement this is by using a custom comparator. I have written the custom
> comparator by using 'org.apache.cassandra.db.marshal.BytesType' and altering
> the compare() method. While inserting values it works fine but while
> retrieving the values I am getting
> "ColumnSerializer$CorruptColumnException".
>
> I've attached the Comparator class. Please suggest what should I change to
> make it work.
>
> Regards
> Tarun

Mime
View raw message