incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Turnbull <da...@broodax.net>
Subject Partial composite result limit possible?
Date Wed, 15 Aug 2012 04:10:42 GMT
Hi, I have a CF with a composite type (LongType, IntegerType) with some data like this:

RowKey: hihi
=> (column=1000:1, value=616263)
=> (column=1000:2, value=6465)
=> (column=1000:3, value=66)
=> (column=1000:4, value=6768)
=> (column=2000:1, value=616263)
=> (column=2000:2, value=6465)
=> (column=2000:3, value=66)
=> (column=2000:4, value=6768)

I want to query from (1000,0 to 2000,2) such that I get 1000:1, 1000:2, 2000:1 and 2000:2
back.
Is this possible?

In pycassa, I can do cf.get('hihi', column_start=(1000,0), column_finish=(2000,2) but that
gives me 1000:1-4 and 2000:1-2.
Specifying a limit of 2 columns for the query just applies to the total results, i.e. only
1000:1 and 1000:2.

I could specify the composite columns fully in the query, but I'm hoping to query over at
least 300 columns, which seems bad.


Mime
View raw message