incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dop Sun" <su...@dopsun.com>
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.

 

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:qihjun@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 <sunht@dopsun.com>

CompareWith defines type for column name/ super column name, and at the
moment, key should be always String.

 

From: huajun qi [mailto:qihjun@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 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:


Mime
View raw message