Maybe I don't get what you are trying to do, but using Cassandra and
Hector, what I do is:
I have the following column family definition
CREATE COLUMN FAMILY CF_NAME
with comparator = 'CompositeType(LongType(reversed=true),UUIDType)'
and default_validation_class = 'UTF8Type'
and key_val
Thanks, This post helped a lot, I discovered that the built-in comparators
have a static instance called *reverseComparator.* My exact requirement was
to create an API that allows creating a Column family with the required
parameters, one such parameter was a flag that indicates the column order.
I
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
wrote:
> Hi,
>
> My requirements is to get retrieve column values, sorted by column names in
> reverse order (column names
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
alterin