Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 45747 invoked from network); 23 Feb 2011 14:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 14:25:10 -0000 Received: (qmail 84317 invoked by uid 500); 23 Feb 2011 14:25:08 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 84070 invoked by uid 500); 23 Feb 2011 14:25:05 -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 84020 invoked by uid 99); 23 Feb 2011 14:25:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 14:25:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_QUOTING X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 14:24:57 +0000 Received: by iyj8 with SMTP id 8so2918416iyj.31 for ; Wed, 23 Feb 2011 06:24:37 -0800 (PST) Received: by 10.231.143.65 with SMTP id t1mr3074637ibu.3.1298471077078; Wed, 23 Feb 2011 06:24:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.31.76 with HTTP; Wed, 23 Feb 2011 06:24:17 -0800 (PST) X-Originating-IP: [194.236.60.217] In-Reply-To: References: From: Daniel Lundin Date: Wed, 23 Feb 2011 15:24:17 +0100 Message-ID: Subject: Re: Is it possible to get list of row keys? To: user@cassandra.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable They are, however, in *stable* order, which is important. On Wed, Feb 23, 2011 at 3:20 PM, Norman Maurer wrote: > yes but be aware that the keys will not in the "right order". > > Bye, > Norman > > 2011/2/23 Roshan Dawrani : >> On Wed, Feb 23, 2011 at 7:17 PM, Ching-Cheng Chen >> wrote: >>> >>> Actually, if you want to get ALL keys, I believe you can still use >>> RangeSliceQuery with RP. >>> Just use setKeys("","") as first batch call. >>> Then use the last key from previous batch as startKey for next batch. >>> Beware that since startKey is inclusive, so you'd need to ignore first = key >>> from now on. >>> Keep going until you finish all batches. =C2=A0You will know you'd need= to stop >>> when setKeys(key_xyz,"") return you only one key. >> >> This is what I meant to suggest when I earlier said "So, if you want all= , >> you will need to keep paging forward and collecting the keys." :-) >