Return-Path: Delivered-To: apmail-cassandra-client-dev-archive@minotaur.apache.org Received: (qmail 46169 invoked from network); 11 Feb 2011 14:42:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 14:42:46 -0000 Received: (qmail 80739 invoked by uid 500); 11 Feb 2011 14:42:46 -0000 Delivered-To: apmail-cassandra-client-dev-archive@cassandra.apache.org Received: (qmail 80682 invoked by uid 500); 11 Feb 2011 14:42:44 -0000 Mailing-List: contact client-dev-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: client-dev@cassandra.apache.org Delivered-To: mailing list client-dev@cassandra.apache.org Received: (qmail 80673 invoked by uid 99); 11 Feb 2011 14:42:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 14:42:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joshua.java@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 14:42:39 +0000 Received: by mail-fx0-f44.google.com with SMTP id 9so3201610fxm.31 for ; Fri, 11 Feb 2011 06:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=buk6dGo9o5sUlaXuqnF2K5nfm5IpUJraDSgPJA+bG+U=; b=xboKdudImDSPPsIs2FsX27gE/ffhazhk2k7X+8jPfuX+rosv95v8KPQcKY2wg+DW4J SFQsnB/EpTRqGkcIDsLuhPXO6lgQ3VCtwnn+iJ3O9u02M7b0LTfCBUqN58NMg+8IjNgv Es8JeDiHeFCzkMZ+PkvR/AFeypSAEBDbF1vgc= 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=q7vXUajrY5/cTlk7LdQB0CrDhdQSUHboQzuMAt6NFGJIwscidvVZ8OAXStu2fMBhUC bFH6SbGAcdGbky6IhJUtN/lF5gDip90JbabTKwEcv1vLwCPCDrW8TG0h73B9QbcNAfHR JIsxePXSUlC0x+j9A0Az7RzgBkoTc6QZ5BGS8= MIME-Version: 1.0 Received: by 10.223.114.135 with SMTP id e7mr587516faq.78.1297435338249; Fri, 11 Feb 2011 06:42:18 -0800 (PST) Received: by 10.223.124.197 with HTTP; Fri, 11 Feb 2011 06:42:18 -0800 (PST) In-Reply-To: References: Date: Sat, 12 Feb 2011 01:42:18 +1100 Message-ID: Subject: Re: Does Ruby library returns the RowKey? From: Joshua Partogi To: client-dev@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Sorry Ryan, you are right. If I use multi_get, it will also return the rowkey. Thanks heaps. On Fri, Feb 11, 2011 at 8:58 PM, Joshua Partogi wrote: > Hi Ryan, > > Thanks for the prompt response. > > I am talking about the get method in cassandra.rb > > get will call multi_get, which also returns OrderedHash. So how come > calling multi_get will also include the row key? Why doesn't it make > sense to return a row key on a get? I don't understand. > > Thanks > > On Fri, Feb 11, 2011 at 3:35 AM, Ryan King wrote: >> On Thu, Feb 10, 2011 at 2:17 AM, Joshua Partogi wrote: >>> Hi, >>> >>> Does the Ruby library currently returns the RowKey during a row get? >>> From what I am seeing it seems like it is only returning an >>> OrderedHash of the columns. Would it be possible to return the RowKey, >>> or it doesn't make sense to do so? >> >> Which method are you talking about? It doesn't make sense to return >> the row key on a get or get_slice, but does for multiget and company >> (which it should already). >> >> -ryan >> > > > > -- > http://twitter.com/jpartogi > -- http://twitter.com/jpartogi