Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 95392 invoked from network); 7 Jun 2010 16:05:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jun 2010 16:05:03 -0000 Received: (qmail 82879 invoked by uid 500); 7 Jun 2010 16:05:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 82859 invoked by uid 500); 7 Jun 2010 16:05:02 -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 82851 invoked by uid 99); 7 Jun 2010 16:05:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 16:05:02 +0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jun 2010 16:04:56 +0000 Received: by wwg30 with SMTP id 30so1512974wwg.31 for ; Mon, 07 Jun 2010 09:04:33 -0700 (PDT) Received: by 10.227.143.213 with SMTP id w21mr252978wbu.63.1275926670500; Mon, 07 Jun 2010 09:04:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.186.79 with HTTP; Mon, 7 Jun 2010 09:04:08 -0700 (PDT) From: =?UTF-8?Q?Utku_Can_Top=C3=A7u?= Date: Mon, 7 Jun 2010 18:04:08 +0200 Message-ID: Subject: Getting keys in a range sorted with respect to last access time To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016367fae5df46364048872d3b0 --0016367fae5df46364048872d3b0 Content-Type: text/plain; charset=UTF-8 Hey All, First of all I'll start with some questions on the default behavior of get_range_slices method defined in the thrift API. Given a keyrange with start-key "kstart" and end-key "kend", assuming kstartkend? Will I get an empty result list? Secondly, I have use case where I need to access the latest updated rows? How can this be possible? Writing a new partitioner? Best Regards, Utku --0016367fae5df46364048872d3b0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey All,

First of all I'll start with some questions on the defa= ult behavior of get_range_slices method defined in the thrift API.

G= iven a keyrange with start-key "kstart" and end-key "kend&qu= ot;, assuming kstart<kend;
* Is it true that I'll get the range [kstart,kend) (kstart inclusive, k= end exclusive)?
* What's the default order of the rows in the result= list? (assuming I am using an OPP)
* (How) can we reverse the sorting o= rder?
* What would be the behavior in the case kstart>kend? Will I get an empt= y result list?

Secondly, I have use case where I need to access the = latest updated rows? How can this be possible? Writing a new partitioner?
Best Regards,
Utku
--0016367fae5df46364048872d3b0--