Regarding Comparator Types

143 views
Skip to first unread message

Nishanth Prasad

unread,
Oct 4, 2011, 7:42:31 AM10/4/11
to hector-users
hi all, 


I am new to cassandra and using the following version for my application.

cassandra===>apache-cassandra-0.8.6
GUI=========> cassandra-gui-0.8.0-beta1
hector======> hector-core-0.8.0-2.tgz


I want to insert the value of type integer, double, date, datetime ( as of mySql) ... how can i achieve this using this version of hector where there is no double, date, datetime data type...

Please do the needful... 
Thanks in advance...

Aaron Turner

unread,
Oct 4, 2011, 11:41:49 AM10/4/11
to hector...@googlegroups.com

There are double and date types:

http://www.datastax.com/docs/0.8/ddl/column_family#about-data-types-comparators-and-validators

One thing that isn't obvious from the documentation is that the
integer, long, etc are SIGNED types.


--
Aaron Turner
http://synfin.net/         Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

Yi Yang

unread,
Oct 4, 2011, 11:56:32 AM10/4/11
to hector...@googlegroups.com
According to the most recent change in 1.0.0 rc2 there's another Int32Type

FYI if you're going to use generic programming techniques - aka using mixed types for mutator, you can always use ByteType serializer.
Reply all
Reply to author
Forward
0 new messages