cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Pope <>
Subject RE: Get few rows by composite key.
Date Mon, 19 Mar 2012 13:43:34 GMT
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.


From: Michael Cherkasov []
Sent: Monday, March 19, 2012 9:30 AM
Subject: Get few rows by composite key.

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     1:C 2:A 2:C
AA:CC     2:A 2:C
AA:DD     1:A 1:B 1:C
BB:AA     1:A 1:B 2:C
BB:BB     1:A 1:B 1:C 2:C
BB:CC     1:A  2:A 2:C
BB:DD     1:A  1:C 2:A 2:C

Is there any way to take rows with first key's part equals AA and second more or equal BB?
I'm interesting about Hector code.

View raw message