Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED26797C5 for ; Wed, 22 Feb 2012 11:25:25 +0000 (UTC) Received: (qmail 18657 invoked by uid 500); 22 Feb 2012 11:25:23 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18635 invoked by uid 500); 22 Feb 2012 11:25:23 -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 18627 invoked by uid 99); 22 Feb 2012 11:25:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 11:25:23 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.149.153] (HELO na3sys009aog125.obsmtp.com) (74.125.149.153) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Feb 2012 11:25:16 +0000 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]) (using TLSv1) by na3sys009aob125.postini.com ([74.125.148.12]) with SMTP ID DSNKT0TQhGZxNXvP5LysKyTPdK7WOfcKocL0@postini.com; Wed, 22 Feb 2012 03:24:55 PST Received: by mail-lpp01m010-f41.google.com with SMTP id f4so11782772lam.14 for ; Wed, 22 Feb 2012 03:24:52 -0800 (PST) Received-SPF: pass (google.com: domain of franc.carter@sirca.org.au designates 10.152.147.202 as permitted sender) client-ip=10.152.147.202; Authentication-Results: mr.google.com; spf=pass (google.com: domain of franc.carter@sirca.org.au designates 10.152.147.202 as permitted sender) smtp.mail=franc.carter@sirca.org.au Received: from mr.google.com ([10.152.147.202]) by 10.152.147.202 with SMTP id tm10mr24469587lab.49.1329909892242 (num_hops = 1); Wed, 22 Feb 2012 03:24:52 -0800 (PST) Received: by 10.152.147.202 with SMTP id tm10mr20510615lab.49.1329909891134; Wed, 22 Feb 2012 03:24:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.46.67 with HTTP; Wed, 22 Feb 2012 03:24:31 -0800 (PST) In-Reply-To: <4F44B9B8.3080800@list-group.com> References: <4F44B9B8.3080800@list-group.com> From: Franc Carter Date: Wed, 22 Feb 2012 22:24:31 +1100 Message-ID: Subject: Re: List all keys with RandomPartitioner To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8f235311a4f40004b98bc668 X-Gm-Message-State: ALoCoQmWP8r0BygRNAvuZELWIAXBMNo3ELfeslIGC5SsdiRfJdh5+QaqZbG+sU4FC5Ckuhy6bHJF X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f235311a4f40004b98bc668 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 22, 2012 at 8:47 PM, Flavio Baronti wrote: > I need to iterate over all the rows in a column family stored with > RandomPartitioner. > When I reach the end of a key slice, I need to find the token of the last > key in order to ask for the next slice. > I saw in an old email that the token for a specific key can be recoveder > through FBUtilities.hash(). That class however is inside the full Cassandra > jar, not inside the client-specific part. > Is there a way to iterate over all the keys which does not require the > server-side Cassandra jar? > Does this help ? http://wiki.apache.org/cassandra/FAQ#iter_world cheers > Thanks > Flavio > -- *Franc Carter* | Systems architect | Sirca Ltd franc.carter@sirca.org.au | www.sirca.org.au Tel: +61 2 9236 9118 Level 9, 80 Clarence St, Sydney NSW 2000 PO Box H58, Australia Square, Sydney NSW 1215 --e89a8f235311a4f40004b98bc668 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Feb 22, 2012 at 8:47 PM, Flavio Baronti = <f.baronti= @list-group.com> wrote:
I need to iterate over all the rows in a column family stored with RandomPa= rtitioner.
When I reach the end of a key slice, I need to find the token of the last k= ey in order to ask for the next slice.
I saw in an old email that the token for a specific key can be recoveder th= rough FBUtilities.hash(). That class however is inside the full Cassandra j= ar, not inside the client-specific part.
Is there a way to iterate over all the keys which does not require the serv= er-side Cassandra jar?

Does this help ?=


cheers


Thanks
Flavio



--

Franc Carter<= /b> |<= /span> Systems architect | Sirca Ltd

franc.carter@sirca.org.au=A0|=A0www.sirca.org.au

Tel:= =A0+61 2 9236 9118

Level 9, 80 Clarence St, Sydney=A0NSW 2000

PO Box H58, Australia Square, Sydney NSW 1215<= /span>


--e89a8f235311a4f40004b98bc668--