Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 46600 invoked from network); 2 Feb 2010 17:40:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 17:40:19 -0000 Received: (qmail 51230 invoked by uid 500); 2 Feb 2010 17:40:19 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 51210 invoked by uid 500); 2 Feb 2010 17:40:19 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 51201 invoked by uid 99); 2 Feb 2010 17:40:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 17:40:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erikholstad@gmail.com designates 209.85.222.172 as permitted sender) Received: from [209.85.222.172] (HELO mail-pz0-f172.google.com) (209.85.222.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 17:40:12 +0000 Received: by pzk2 with SMTP id 2so292355pzk.21 for ; Tue, 02 Feb 2010 09:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xlxbRiHv52AsqIVS1YYdc0Gcy7eIsusGp2odOp+6Q1U=; b=rX19HjJ7kFKRg35x/JTvYSDSvi3zohGG1jdo2Eu+FN4h8UZdWl+VmBan5wNSaaCQWA KBhcbxrf6R4e8RMr6IbR0GkMRL6OuTdyUa5vVwBClIjJR5KRisr608ESX80Hlpx/ntWH MFfpsaIUQtl+HQvaJb2Yq34+4++qXuFXQd2kI= 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=BFJO6pfYzaWbmcdnY6cxwEYtMbbFD4EIAQyhEIkEMzY9j3HR1tfhmdZnSYGLmGfIWG BGDJgGTe7lpOs3iFz/dS+J5/KbvcRAV2APlwzyqeupdiy5cy3tqPbkI9o+77HLxfFsCx pgaJEWqIEFh+AgfPxyTkZ8CtcZaa8MTU7lxAs= MIME-Version: 1.0 Received: by 10.114.188.37 with SMTP id l37mr4140897waf.9.1265132392193; Tue, 02 Feb 2010 09:39:52 -0800 (PST) In-Reply-To: References: <74f4d40b1002020921s2d016d11ieeaf4c8425a85ab8@mail.gmail.com> <74f4d40b1002020929x15ab9681m43029b69d32b45b9@mail.gmail.com> Date: Tue, 2 Feb 2010 09:39:52 -0800 Message-ID: <74f4d40b1002020939p54e10386mfd738df07df4e09e@mail.gmail.com> Subject: Re: Reverse sort order comparator? From: Erik Holstad To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e64e5756d49f43047ea19648 --0016e64e5756d49f43047ea19648 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 2, 2010 at 9:35 AM, Brandon Williams wrote: > On Tue, Feb 2, 2010 at 11:29 AM, Erik Holstad wrote: > >> Thanks guys! >> So I want to use sliceRange but thinking about using the count parameter. >> For example give me >> the first x columns, next call I would like to call it with a start value >> and a count. >> >> If I was to use the reverse param in sliceRange I would have to fetch all >> the columns first, right? > > > If you pass reverse as true, then instead of getting the first x columns, > you'll get the last x columns. If you want to head backwards toward the > beginning, you can pass the first column as the end value. > > -Brandon > Wow that sounds really good. So you are saying if I set it to reverse sort order and count 10 for the first round I get the last 10, for the next call I just set the last column from the first call to start and I will get the columns -10- -20, so to speak? -- Regards Erik --0016e64e5756d49f43047ea19648 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Feb 2, 2010 at 9:35 AM, Brandon = Williams <driftx@g= mail.com> wrote:
On Tue, Feb 2, 2010 at 11:29 A= M, Erik Holstad <erikholstad@gmail.com> wrote:
Thanks guys!
So I want to use sliceRange but thinking about using the co= unt parameter. For example give me
the first x columns, next call I woul= d like to call it with a start value and a count.

If I was to use th= e reverse param in sliceRange I would have to fetch all the columns first, = right?

If you pass reverse as true, then instead of gett= ing the first x columns, you'll get the last x columns. =A0If you want = to head backwards toward the beginning, you can pass the first column as th= e end value.

-Brandon=A0
Wow that sounds really good. So you are saying if I set = it to reverse sort order and count 10 for the first round I get the last 10= ,
for the next call I just set the last column from the first call to st= art and I will get the columns -10- -20, so to speak?


--
Regards Erik
--0016e64e5756d49f43047ea19648--