Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 97564 invoked from network); 2 Feb 2010 15:38:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 15:38:25 -0000 Received: (qmail 12578 invoked by uid 500); 2 Feb 2010 15:36:17 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 12568 invoked by uid 500); 2 Feb 2010 15:36:16 -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 12554 invoked by uid 99); 2 Feb 2010 15:36:14 -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 15:36:14 +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.216.174 as permitted sender) Received: from [209.85.216.174] (HELO mail-px0-f174.google.com) (209.85.216.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 15:36:07 +0000 Received: by pxi4 with SMTP id 4so160038pxi.32 for ; Tue, 02 Feb 2010 07:35:47 -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=VvXDK/p2gm0sAJiMSHPgdjIPk/UcfuUjHJq+8/A09DQ=; b=H2yJXBy1mz5i2Ok4mLYiQJwm6J7wfpB9wRlL6VR0zkbrCvtlXlkft0wjqbn2NXFZzX f2Lk/3qVEzRenrAMQ2pUWA2Zb6ETt8OrRADSSbNPAJK2lsTi8dFGlhjRPs2hxr1rcDJM MsrVSsZRZ7WdzdUvahpAgNdTM/3NsnqgOeVmQ= 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=vNeiAd0tqMBbqTdzDe1/SFYuNnJks3C0PYajxfGNRIABSW53ZLQ4hbGnQp07PjZS5R yRh9zGi7GXgQnnvJoPT/4a6Pjrhl010LFO/rRbV217ROY2mvHKOnPTLI+731V5DvNLp4 Az0wOi8/BW/qYxZqdbtKXmNNbSBKd8IFSQtS4= MIME-Version: 1.0 Received: by 10.114.188.37 with SMTP id l37mr4042304waf.9.1265124946971; Tue, 02 Feb 2010 07:35:46 -0800 (PST) In-Reply-To: <91790a981002020721m573edb5cqff9a4c859990a5a@mail.gmail.com> References: <91790a981002020721m573edb5cqff9a4c859990a5a@mail.gmail.com> Date: Tue, 2 Feb 2010 07:35:46 -0800 Message-ID: <74f4d40b1002020735i6a6db83av4976674be152f539@mail.gmail.com> Subject: Re: How to retrieve keys from Cassandra ? From: Erik Holstad To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e64e57560f8e47047e9fdb0b --0016e64e57560f8e47047e9fdb0b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Sebastien! I'm totally new to Cassandra, but as far as I know there is no way of getting just the keys that are in the database, they are not stored separately but only with the data itself. Why do you want a list of keys, what are you going to use them for? Maybe there is another way of solving your problem. What you are describing, getting all the keys/rows for a given column sound= s like you have to fetch all the data that you have and then filter every key on your column, I don't think that get_key_range will do that for you even, says that it takes column_family, but like I said I'm totally new Erik 2010/2/2 S=E9bastien Pierre > Hi all, > > I would like to know how to retrieve the list of available keys available > for a specific column. There is the get_key_range method, but it is only > available when using the OrderPreservingPartitioner -- I use a > RandomPartitioner. > > Does this mean that when using a RandomPartitioner, you cannot see which > keys are available in the database ? > > -- S=E9bastien > --=20 Regards Erik --0016e64e57560f8e47047e9fdb0b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Sebastien!
I'm totally new to Cassandra, but as far as I know the= re is no way of getting just the keys that are in the
database, they are= not stored separately but only with the data itself.

Why do you wan= t a list of keys, what are you going to use them for? Maybe there is anothe= r way of solving
your problem.

What you are describing, getting all the keys/rows for= a given column sounds like you have to fetch all the
data that you hav= e and then filter every key on your column, I don't think that get_key_= range will do that for
you even, says that it takes column_family, but like I said I'm totally= new

Erik

2010/2/2 S=E9bastien Pie= rre <seb= astien.pierre@gmail.com>
Hi all,

<= /div>
I would like to know how to retrieve the list of available keys a= vailable for a specific column. There is the get_key_range method, but it i= s only available when using the OrderPreservingPartitioner -- I use a Rando= mPartitioner.

Does this mean that when using a RandomPartitioner, you cannot see= which keys are available in the database ?

=A0-- S=E9bastien



--
Regards Erik
--0016e64e57560f8e47047e9fdb0b--