Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 55266 invoked from network); 14 Sep 2010 10:49:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 10:49:34 -0000 Received: (qmail 21734 invoked by uid 500); 14 Sep 2010 10:49:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 21485 invoked by uid 500); 14 Sep 2010 10:49:28 -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 21477 invoked by uid 99); 14 Sep 2010 10:49:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 10:49:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sabco@live.co.uk designates 65.55.90.146 as permitted sender) Received: from [65.55.90.146] (HELO snt0-omc3-s7.snt0.hotmail.com) (65.55.90.146) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 10:49:19 +0000 Received: from SNT133-DS11 ([65.55.90.136]) by snt0-omc3-s7.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 14 Sep 2010 03:48:59 -0700 X-Originating-IP: [90.222.15.25] X-Originating-Email: [sabco@live.co.uk] Message-ID: From: "Courtney Robinson" To: References: <634087A402B83643BAD920A30B0F1D5504F0C158@seamonkey.exchange.cognito.co.uk> In-Reply-To: Subject: Re: column limit on multiget_slice or get_slice Date: Tue, 14 Sep 2010 11:48:59 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01CB5402.D1A37790" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 X-OriginalArrivalTime: 14 Sep 2010 10:48:59.0283 (UTC) FILETIME=[6FCD0E30:01CB53FA] This is a multi-part message in MIME format. ------=_NextPart_000_0020_01CB5402.D1A37790 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ahhh, excellent. thank you From: Chen Xinli=20 Sent: Tuesday, September 14, 2010 10:51 AM To: user@cassandra.apache.org=20 Subject: Re: column limit on multiget_slice or get_slice you can use get_slice:=20 public List get_slice(String keyspace, String key, = ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel = consistency_level) throws InvalidRequestException, UnavailableException, = TimedOutException, TException; In the SlicePredicate.SliceRange, set start and finish to empty, count = to x 2010/9/14 Courtney Robinson Is it possible to get the first x columns from a row without knowing = the column names? So far i've been working with just grabbing all the columns in a row = or just getting a specific column that i know the name of. If it is possible, can anyone point me in the right direction of how = to do this? I'm using 0.6.4 with the thrift interface in java, i use hector but = i'd much prefer knowing how its done via thrift first :) thanks=20 --=20 Best Regards, Chen Xinli ------=_NextPart_000_0020_01CB5402.D1A37790 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Ahhh, excellent.
thank you

From: Chen Xinli
Sent: Tuesday, September 14, 2010 10:51 AM
Subject: Re: column limit on multiget_slice or=20 get_slice

you can use get_slice:
public = List<ColumnOrSuperColumn>=20 get_slice(String keyspace, String key, ColumnParent column_parent,=20 SlicePredicate predicate, ConsistencyLevel consistency_level) throws=20 InvalidRequestException, UnavailableException, TimedOutException,=20 TException;

In the SlicePredicate.SliceRange, set start and = finish to=20 empty, count to x

2010/9/14 Courtney Robinson <sabco@live.co.uk>
Is it possible to get the first x columns from a row = without=20 knowing the column names?
So far i've been working with just = grabbing all=20 the columns in a row or just getting a specific column that i know the = name=20 of.
If it is possible, can anyone point me in the right direction = of how to=20 do this?
I'm using 0.6.4 with the thrift interface in java, i use = hector=20 but i'd much prefer knowing how its done via thrift first :)
thanks =



--
Best = Regards,
Chen=20 Xinli
------=_NextPart_000_0020_01CB5402.D1A37790--