Re: Get few rows by composite key.

2012-03-20 Thread aaron morton
and the second is a fetch. > > Cheers, > Steve > > From: Michael Cherkasov [mailto:michael.cherka...@gmail.com] > Sent: Monday, March 19, 2012 9:41 AM > To: user@cassandra.apache.org > Subject: Re: Get few rows by composite key. > > Also one more question: > Ca

RE: Get few rows by composite key.

2012-03-19 Thread Stephen Pope
Those are going to have to be separate queries, since the first is a slice, and the second is a fetch. Cheers, Steve From: Michael Cherkasov [mailto:michael.cherka...@gmail.com] Sent: Monday, March 19, 2012 9:41 AM To: user@cassandra.apache.org Subject: Re: Get few rows by composite key. Also

RE: Get few rows by composite key.

2012-03-19 Thread Stephen Pope
I'm not sure about Hector code (somebody else can chime in here), but to find the keys you're after you can slice to get the keys from AA:BB to BB:AA. Cheers, Steve From: Michael Cherkasov [mailto:michael.cherka...@gmail.com] Sent: Monday, March 19, 2012 9:30 AM To: user@cassandra.apache.org Sub

Re: Get few rows by composite key.

2012-03-19 Thread Michael Cherkasov
Also one more question: Can someone show query that will fetch all rows match to this condition: ( AA:(part 2>= BB) ) or ( key == (BB:CC) ) 2012/3/19 Michael Cherkasov > Hello, > Assume that we have table like this one: > > Key:Columns names: > AA:AA 1:A 1:B 1:C 2:A 2:C > AA:BB