cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <aa...@thelastpickle.com>
Subject Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?
Date Thu, 22 Jul 2010 00:58:07 GMT
Take a look at the  get_slice  function http://wiki.apache.org/cassandra/API

You could send one with a ColumnParent that only specifies the ColumnFamily and a SlicePredicate
with a SliceRange where the start and finish values are empty strings. Set the count to an
appropriate level to get them all (e.g. 1000) or make multiple calls.


Aaron


On 22 Jul, 2010,at 12:05 PM, Patricio Echagüe <patricioe@gmail.com> wrote:

> Hi all, apologize before hand if this question sounds a bit dumb but I
> don't see what API I should use (if there is any)
>
> this is my model:
>
> row key A:
> SC_UUID_1:
> Col1, Col2, Col3
> SC_UUID_2:
> Col1, Col2, Col3
> SC_UUID_3:
> Col1, Col2, Col3
> SC_UUID_4:
> Col1, Col2, Col3
> SC_UUID_5:
> Col1, Col2, Col3
>
> SC_UUID(i) are random UUIDs.
>
> Is there any way to read in one call from row A, the SC 2,3,4 with all
> their columns? The amount of columns in every SuperColumn is not big
> at all. normally less than 20.
>
> Thanks
> -- 
> Patricio.-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message