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
Thanks!
://code.google.com/p/jassandra/source/browse/trunk/org.softao.jassandra/
src/org/softao/jassandra/ByteArray.java
This ByteArray can give you something about converting.
From: huajun qi [mailto:qih...@gmail.com]
Sent: Sunday, May 23, 2010 10:11 AM
To: user@cassandra.apache.org
Subject: Re: long type
Then what kink of column name should I use?
2010/5/23 Dop Sun
> CompareWith defines type for column name/ super column name, and at the
> moment, key should be always String.
>
>
>
> *From:* huajun qi [mailto:qih...@gmail.com]
> *Sent:* Saturday, May 22, 2010 10:19 PM
> *To:* user@cassandra.apa
CompareWith defines type for column name/ super column name, and at the
moment, key should be always String.
From: huajun qi [mailto:qih...@gmail.com]
Sent: Saturday, May 22, 2010 10:19 PM
To: user@cassandra.apache.org
Subject: long type
I set the "CompareWith" property to "longtype", but