From user-return-7841-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Thu Jul 22 00:58:56 2010 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 70631 invoked from network); 22 Jul 2010 00:58:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 00:58:56 -0000 Received: (qmail 76188 invoked by uid 500); 22 Jul 2010 00:58:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 76144 invoked by uid 500); 22 Jul 2010 00:58:54 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 76136 invoked by uid 99); 22 Jul 2010 00:58:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 00:58:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a44.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 00:58:46 +0000 Received: from homiemail-a44.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTP id 34076118064 for ; Wed, 21 Jul 2010 17:58:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:message-id:content-type:mime-version:in-reply-to:date; q=dns; s=thelastpickle.com; b=CkPS2vJmrSThazkctXHhxa1N48+lD7/Fc hOm7w/bSjZvkGFRizXNBLmUEqrTwxqnB2NAVt5TE32hXIo64ULDjA0i75b8yGHYH RVtdxBvlcY5hTvY5sR+FpKhk69u40c35qGLIX/kNTvdvVjr/5gMi3Witzw1+w5SE +RxQa74BJA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:message-id:content-type:mime-version:in-reply-to: date; s=thelastpickle.com; bh=x8nKkhKhn/c6wwssGJ1/EINo+LI=; b=4K lWkxGAYxU2+8ja1IxomwFTTGEPeT12zssPnCLh0stSR8iNCTP0RXsgOBQX6gum9X 22HV1R9tRuSKpM+Rm1qWNhP8AIKa3+VtlYoDYao7gTZ9GaIhsOPfSLGJuEVIvG4j hyNqgzu4U6JFtg1PqzChM9YIbXKPoioy8yFgqH2xQ= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTPSA id 11DE3118060 for ; Wed, 21 Jul 2010 17:58:07 -0700 (PDT) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call? X-Mailer: MobileMe Mail (1C262608) Message-id: <67ff307f-4be4-ea8a-dc49-ee32ef3c1ff0@me.com> Content-Type: multipart/alternative; boundary=Apple-Webmail-42--bac63b07-93aa-e86e-cbe8-f0056eb26c93 MIME-Version: 1.0 In-Reply-To: Date: Wed, 21 Jul 2010 17:58:07 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Webmail-42--bac63b07-93aa-e86e-cbe8-f0056eb26c93 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8; format=flowed Take a look at the get_slice function http://wiki.apache.org/cassandra/A= PI=0A=0AYou could send one with a ColumnParent that only specifies the Col= umnFamily and a SlicePredicate with a SliceRange where the start and finis= h values are empty strings. Set the count to an appropriate level to get t= hem all (e.g. 1000) or make multiple calls.=0A=EF=BB=BF=0A=0AAaron=0A=0A=0A= On 22 Jul, 2010,at 12:05 PM, Patricio Echag=C3=BCe w= rote:=0A=0A> Hi all, apologize before hand if this question sounds a bit d= umb but I=0A> don't see what API I should use (if there is any)=0A>=0A> th= is is my model:=0A>=0A> row key A:=0A> SC_UUID_1:=0A> Col1, Col2, Col3=0A>= SC_UUID_2:=0A> Col1, Col2, Col3=0A> SC_UUID_3:=0A> Col1, Col2, Col3=0A> S= C_UUID_4:=0A> Col1, Col2, Col3=0A> SC_UUID_5:=0A> Col1, Col2, Col3=0A>=0A>= SC_UUID(i) are random UUIDs.=0A>=0A> Is there any way to read in one call= from row A, the SC 2,3,4 with all=0A> their columns? The amount of column= s in every SuperColumn is not big=0A> at all. normally less than 20.=0A>=0A= > Thanks=0A> -- =0A> Patricio.-=0A --Apple-Webmail-42--bac63b07-93aa-e86e-cbe8-f0056eb26c93 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--bac63b07-93aa-e86e-cbe8-f0056eb26c93 --Apple-Webmail-86--bac63b07-93aa-e86e-cbe8-f0056eb26c93 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
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 th= e start and finish values are empty strings. Set the count to an appropria= te level to get them all (e.g. 1000) or make multiple calls.


A= aron


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

=
Hi all, apologize before hand if this questio= n sounds a bit dumb but I
=0Adon't see what API I should use (if there = is any)
=0A
=0Athis is my model:
=0A
=0Arow key A:
=0A = SC_UUID_1:
=0A Col1, Co= l2, Col3
=0A SC_UUID_2:
=0A = Col1, Col2, Col3
=0A SC_UUID_3:
=0A = Col1, Col2, Col3
=0A SC= _UUID_4:
=0A Col1, Col2, Col3
=0A= SC_UUID_5:
=0A Col= 1, Col2, Col3
=0A
=0ASC_UUID(i) are random UUIDs.
=0A
=0AIs th= ere any way to read in one call from row A, the SC 2,3,4 with all
=0Ath= eir columns? The amount of columns in every SuperColumn is not big
=0Aa= t all. normally less than 20.
=0A
=0AThanks
=0A--
=0APatricio= -
=0A
--Apple-Webmail-86--bac63b07-93aa-e86e-cbe8-f0056eb26c93-- --Apple-Webmail-42--bac63b07-93aa-e86e-cbe8-f0056eb26c93--