RE: issue with querying SuperColumn

2011-06-21 Thread Vivek Mishra
Thanks Richard. You are right. I missed that in key validation class. -Original Message- From: Richard Low [mailto:r...@acunu.com] Sent: Tuesday, June 21, 2011 12:44 PM To: user@cassandra.apache.org Subject: Re: issue with querying SuperColumn You have key validation class UTF8Type for

Re: issue with querying SuperColumn

2011-06-21 Thread Richard Low
rk. Richard. -- Richard Low Acunu | http://www.acunu.com | @acunu On Tue, Jun 21, 2011 at 7:36 AM, Vivek Mishra wrote: > > > > > I am facing one issue with querying superColumn using clien.get() API. > Although it is working when I try it for a ColumnFamily(rather than

issue with querying SuperColumn

2011-06-20 Thread Vivek Mishra
I am facing one issue with querying superColumn using clien.get() API. Although it is working when I try it for a ColumnFamily(rather than SuperColumnFamily). It is working for: ColumnFamily: users Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type Default column

Re: Querying superColumn

2011-06-17 Thread Sasha Dolgy
ect. But that will not solve issue of data colocation(data locality) ? > > > > From: Sasha Dolgy [mailto:sdo...@gmail.com] > Sent: Thursday, June 16, 2011 8:47 PM > To: user@cassandra.apache.org > Subject: Re: Querying superColumn > > > > Have 1 ro

RE: Querying superColumn

2011-06-17 Thread Vivek Mishra
Correct. But that will not solve issue of data colocation(data locality) ? From: Sasha Dolgy [mailto:sdo...@gmail.com] Sent: Thursday, June 16, 2011 8:47 PM To: user@cassandra.apache.org Subject: Re: Querying superColumn Have 1 row with employee info for country/office/division, each column an

Re: Querying superColumn

2011-06-16 Thread Sasha Dolgy
Have 1 row with employee info for country/office/division, each column an employee id and json info about the employee or a reference.to.another row id for that employee data No more supercolumn. On Jun 16, 2011 1:56 PM, "Vivek Mishra" wrote: > I have a question about querying super column >

Re: Querying superColumn

2011-06-16 Thread Donal Zang
Well, you are looking for the secondary index. But for now,AFAIK, the supercolumn can not use secondary index . On 16/06/2011 13:55, Vivek Mishra wrote: Now for rowKey 'DEPT1' I have inserted multiple super column like: *Employee1{* *Name: Vivek* *country: India* *}* ** *Employee2{* *Nam

Querying superColumn

2011-06-16 Thread Vivek Mishra
I have a question about querying super column For example: I have a supercolumnFamily DEPARTMENT with dynamic superColumn 'EMPLOYEE'( name, country). Now for rowKey 'DEPT1' I have inserted multiple super column like: Employee1{ Name: Vivek country: India } Employee2{ Name: Vivs country: US