cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dop Sun" <>
Subject RE: long type
Date Sun, 23 May 2010 02:43:37 GMT
Column name should be bytes, which is converted from data types which are
defined by CompareWith:

Look at the storage-conf.xml file:

       ~ BytesType: Simple sort by byte value.  No validation is performed.

       ~ AsciiType: Like BytesType, but validates that the input can be 

       ~            parsed as US-ASCII.

       ~ UTF8Type: A string encoded as UTF8

       ~ LongType: A 64bit long

       ~ LexicalUUIDType: A 128bit UUID, compared lexically (by byte value)

       ~ TimeUUIDType: a 128bit version 1 UUID, compared by timestamp

The value should matching.


This ByteArray can give you something about converting.


From: huajun qi [] 
Sent: Sunday, May 23, 2010 10:11 AM
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 [] 
Sent: Saturday, May 22, 2010 10:19 PM
Subject: long type


I set the "CompareWith" property to "longtype", but I can not insert data.
It seems that something is wrong with the key. If I use longtype comparison,
what key I should use? int?long?


By the way, the language I use is python.



View raw message