Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 88409 invoked from network); 1 Jun 2010 11:23:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jun 2010 11:23:36 -0000 Received: (qmail 70298 invoked by uid 500); 1 Jun 2010 11:23:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 70249 invoked by uid 500); 1 Jun 2010 11:23:32 -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 70241 invoked by uid 99); 1 Jun 2010 11:23:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 11:23:31 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sucode@gmail.com designates 74.125.83.172 as permitted sender) Received: from [74.125.83.172] (HELO mail-pv0-f172.google.com) (74.125.83.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2010 11:23:26 +0000 Received: by pvh11 with SMTP id 11so793884pvh.31 for ; Tue, 01 Jun 2010 04:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=8FdKsuLaOOM9k5x9utYALGZimfJFhBv3PguX/IEzC2A=; b=OWpqhFj7cISW3/gva0GxEPs8GBa4xh2scYggJwffHYgUbJHFbA1soaJ/XMSRVL7jz8 Ks/7J+lmj8UGcji77oGhB/HaK/99Spr9p0t46/I4jFp0W7xSpfWKbzgOutA/cgJ4ikST w6dGkJ9rmlfGzHFWC5XQ7+uFE1jcG9nJ1+QSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fGs2dzMEr/l7ccpCHiVGj1LzBWt0FuSfb4e1I8JNKsyvY9DZs2wifXaADajDV3fJfO oSZjsH4lRVzs6nU4lXLgs+1NhT40TreyzYc1vS2XcwDyYvUWhSXBk1nUzzcJ17AeMYoj DC/wnVNNCvZOD2uXfE5Cmbt7xL0jqXywSOGI4= MIME-Version: 1.0 Received: by 10.143.137.1 with SMTP id p1mr3990815wfn.296.1275391385111; Tue, 01 Jun 2010 04:23:05 -0700 (PDT) Received: by 10.142.215.18 with HTTP; Tue, 1 Jun 2010 04:23:05 -0700 (PDT) In-Reply-To: <1275386322.2481.40.camel@supertool-2907-01> References: <1275386322.2481.40.camel@supertool-2907-01> Date: Tue, 1 Jun 2010 19:23:05 +0800 Message-ID: Subject: Re: question about class SlicePredicate From: Eric Yu To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000e0cd72dda758e8c0487f63256 --000e0cd72dda758e8c0487f63256 Content-Type: text/plain; charset=ISO-8859-1 It needs a SliceRange. For example: SliceRange range = new SliceRange(); range.setStart("".getBytes()); range.setFinish("".getBytes()); range.setReversed(true); range.setCount(20); SlicePredicate sp = new SlicePredicate(); sp.setSlice_range(range); client.get_slice(KEYSPACE, KEY, ColumnParent, sp, ConsistencyLevel.ONE); 2010/6/1 Shuai Yuan > Hi all, > > I don't quite understand the usage of 'class SlicePredicate' when trying > to retrieve a ranged slice. > > How should it be initialized? > > Thanks! > -- > Kevin Yuan > www.yuan-shuai.info > > > --000e0cd72dda758e8c0487f63256 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It needs a SliceRange. For example:

SliceRange range =3D new Slic= eRange(); range.setStart("".getBytes()); range.setFinish("".getBytes()); range.setReversed(true); range.setCount(20); SlicePredicate sp =3D new SlicePredicate(); sp.setSlice_range(range); client.get_slice(KEYSPACE, KEY, ColumnParent, sp, ConsistencyLev= el.ONE);

2010/6/1 Shuai Yua= n <yuans= huai@supertool.net.cn>
Hi all,

I don't quite understand the usage of 'class SlicePredicate' wh= en trying
to retrieve a ranged slice.

How should it be initialized?

Thanks!
--
Kevin Yuan
www.yuan-shuai.inf= o



--000e0cd72dda758e8c0487f63256--