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.
http://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:[email protected]]
Sent: Sunday, May 23, 2010 10:11 AM
To: [email protected]
Subject: Re: long type
Then what kink of column name should I use?
2010/5/23 Dop Sun <[email protected]>
CompareWith defines type for column name/ super column name, and at the
moment, key should be always String.
From: huajun qi [mailto:[email protected]]
Sent: Saturday, May 22, 2010 10:19 PM
To: [email protected]
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.
--
Location:
--
Location: