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 D3BDC985E for ; Wed, 22 Feb 2012 09:49:45 +0000 (UTC) Received: (qmail 4851 invoked by uid 500); 22 Feb 2012 09:49:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4828 invoked by uid 500); 22 Feb 2012 09:49:43 -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 4817 invoked by uid 99); 22 Feb 2012 09:49:43 -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 09:49:43 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [85.18.234.226] (HELO mail2.list-group.com) (85.18.234.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2012 09:49:36 +0000 Received: from [10.91.195.193] by mail2.list-group.com with esmtpa (Exim 4.69) (envelope-from ) id 1S08p1-0007Sy-7h for user@cassandra.apache.org; Wed, 22 Feb 2012 10:49:15 +0100 Message-ID: <4F44B9B8.3080800@list-group.com> Date: Wed, 22 Feb 2012 10:47:36 +0100 From: Flavio Baronti Organization: List S.p.A. User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: List all keys with RandomPartitioner Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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? Thanks Flavio