RE: Using Cli to create a column family with column name metadata question

2011-11-07 Thread Arsene Lee
Hi,

Thanks for the replay. I'm not talking about the column name. I'm talking about 
the column metadata's column name. Right now cli can't not display the column's 
meta name correctly if the comparator type is not UTF8.

Regards,

Arsene

-Original Message-
From: Jonathan Ellis [mailto:jbel...@gmail.com] 
Sent: Friday, November 04, 2011 11:09 PM
To: user
Subject: Re: Using Cli to create a column family with column name metadata 
question

[Moving to user@]

Because Cassandra's sparse data model supports using rows as materialized 
views, having non-UTF8 column names is common and totally valid.

On Fri, Nov 4, 2011 at 5:19 AM, Arsene Lee arsene@ruckuswireless.com 
wrote:
 Hi,

 I'm trying to use Column Family's metadata to do some validation. I found out 
 that in Cassandra's CLI CliClient.java code when trying to create a column 
 family with column name metadata. It is based on CF's comparator type to 
 convert the name String to ByteBuffer. I'm wondering if there is any 
 particular reason for this? For the column name metadata shouldn't it be 
 easier just to all use UTF8Type. Because if CF's comparator is other than 
 UTF8Type, it is hard to convert the column name back.

 Regards,

 Arsene Lee




--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support 
http://www.datastax.com



Re: Using Cli to create a column family with column name metadata question

2011-11-07 Thread Brandon Williams
On Mon, Nov 7, 2011 at 7:36 PM, Arsene Lee
arsene@ruckuswireless.com wrote:
 Hi,

 Thanks for the replay. I'm not talking about the column name. I'm talking 
 about the column metadata's column name. Right now cli can't not display the 
 column's meta name correctly if the comparator type is not UTF8.

Try 'help assume;'

-Brandon


RE: Using Cli to create a column family with column name metadata question

2011-11-07 Thread Arsene Lee
Hi,

I tried the assume and column metadata's column name still not right. I think 
CLI shouldn't use comparator type to convert the column meta string. It should 
all use UTF8 to convert column name metadata.

Regards,

Arsene

-Original Message-
From: Brandon Williams [mailto:dri...@gmail.com] 
Sent: Tuesday, November 08, 2011 9:49 AM
To: user@cassandra.apache.org
Subject: Re: Using Cli to create a column family with column name metadata 
question

On Mon, Nov 7, 2011 at 7:36 PM, Arsene Lee arsene@ruckuswireless.com 
wrote:
 Hi,

 Thanks for the replay. I'm not talking about the column name. I'm talking 
 about the column metadata's column name. Right now cli can't not display the 
 column's meta name correctly if the comparator type is not UTF8.

Try 'help assume;'

-Brandon



Re: Using Cli to create a column family with column name metadata question

2011-11-04 Thread Jonathan Ellis
[Moving to user@]

Because Cassandra's sparse data model supports using rows as
materialized views, having non-UTF8 column names is common and
totally valid.

On Fri, Nov 4, 2011 at 5:19 AM, Arsene Lee
arsene@ruckuswireless.com wrote:
 Hi,

 I'm trying to use Column Family's metadata to do some validation. I found out 
 that in Cassandra's CLI CliClient.java code when trying to create a column 
 family with column name metadata. It is based on CF's comparator type to 
 convert the name String to ByteBuffer. I'm wondering if there is any 
 particular reason for this? For the column name metadata shouldn't it be 
 easier just to all use UTF8Type. Because if CF's comparator is other than 
 UTF8Type, it is hard to convert the column name back.

 Regards,

 Arsene Lee




-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com