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 7519BD575 for ; Wed, 17 Oct 2012 09:58:36 +0000 (UTC) Received: (qmail 45904 invoked by uid 500); 17 Oct 2012 09:58:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 45748 invoked by uid 500); 17 Oct 2012 09:58:32 -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 45586 invoked by uid 99); 17 Oct 2012 09:58:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 09:58:31 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rohit2412@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 09:58:25 +0000 Received: by mail-ob0-f172.google.com with SMTP id v19so8623296obq.31 for ; Wed, 17 Oct 2012 02:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lfTE847n8EFQavblCUk5gmb4rMwYlxKmjDO9POE/5oE=; b=vkAbfFJL76tv/F4ftyb8rj7r9dkjUjYwHbsRiVaZ1YROxC/4xEjMvplphIRS2z//Ez NIaea9J6vMOZM9PfHFPSoE2Sa+g1J8NiKmZqS26jt46AeRjs2ejyA3yBgPo87ow4J5GK tfMq8/H1Nj7GWcgGfdGn6ySSC7hKTG0leeORpMLrf/CLBsqOInuBgZGqJow/aV0Ejc7Q Dh2kllBM7gOxRb/7U3aKR6TydjA3zIJqnQ7VgW2o7xXz36gVo0YL8wjBJNHA06rle7AX c74AdYQ1HL2c51IuA5IfZXuSwb52k8x+4YDZjrzwpG/qGXDwMJ/5GwfcmwmWg1pqg9/T oxVw== MIME-Version: 1.0 Received: by 10.60.172.201 with SMTP id be9mr14704140oec.141.1350467885086; Wed, 17 Oct 2012 02:58:05 -0700 (PDT) Received: by 10.76.168.72 with HTTP; Wed, 17 Oct 2012 02:58:05 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Oct 2012 15:28:05 +0530 Message-ID: Subject: Re: Astyanax empty column check From: rohit bhatia To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org See "If you attempt to retrieve an entire row and it returns a result with no columns, it effectively means that row does not exist." Essentially a row without columns doesn't exist.. (except those with tombstones) from here http://stackoverflow.com/questions/8072253/is-there-a-difference-between-an-empty-key-and-a-key-that-doesnt-exist On Wed, Oct 17, 2012 at 2:17 PM, Xu Renjie wrote: > Sorry for the version, I am using 1.0.1 Astyanax. > > > On Wed, Oct 17, 2012 at 4:44 PM, Xu Renjie wrote: >> >> hello guys, >> I am currently using Astyanax as a client(new to Astyanax). But I am >> not clear how to differentiate the following 2 situations: >> a. A row which has only key without columns >> b. No this row in database. >> >> Since when I use RowQuery to query Cassandra with given key, both the >> above two situations will return a ColumnList >> with size 0. And also I didn't find other api can handle this. >> Do you have any better way for this? Thanks in advance. >> Cheers, >> Xu > >