Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 E21339E81 for ; Tue, 29 May 2012 01:12:57 +0000 (UTC) Received: (qmail 98706 invoked by uid 500); 29 May 2012 01:12:54 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 98577 invoked by uid 500); 29 May 2012 01:12:54 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 98569 invoked by uid 99); 29 May 2012 01:12:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 01:12:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of benkimkimben@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 01:12:48 +0000 Received: by wefh52 with SMTP id h52so3276178wef.14 for ; Mon, 28 May 2012 18:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=9lhHUCAFL79bFKWpqSykiVtGljLeW1CTlyGjaAJpQEI=; b=U7r1DsFAucF5iycWVy1EepArzm24OJAG6ttp7d17yYld64CNGNTFbnWiUFwBLP3h5E pc+emGVM1hHvs31VLAIupqq8PsFLDfyry6olkPVbsG3xNFigbdykrO6yu5JNN8E0SRGL eUkiQpIzY5UQz8tPveTKiWej3tsQUljJoKmbmU8Y0BKMDfM3UuKHCIh/S5ckpmzdD8dL 6ruUWsh2Mm1xHaoRQ01Es8HCqpwegP8T0F/PTgCNT+A2Kd7LulukJC8E3REhgA4iNHLT iKQ5E4w66kCKKS6e7HshLxyyPf2N44yohvZNPj/uu8prUALPt6UTetfA7IwHpZW3M11V mwKw== Received: by 10.216.193.162 with SMTP id k34mr6004269wen.54.1338253946762; Mon, 28 May 2012 18:12:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.199.205 with HTTP; Mon, 28 May 2012 18:12:06 -0700 (PDT) From: Ben Kim Date: Tue, 29 May 2012 10:12:06 +0900 Message-ID: Subject: Null rowkey with empty get operation To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=0016e6d7e3501db71004c1228739 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d7e3501db71004c1228739 Content-Type: text/plain; charset=ISO-8859-1 I have following Get code with HBase 0.92.0 Get get = new Get(Bytes.toBytes(rowkey)); get.addFamily(family); Filter filter = new QualifierFilter(CompareOp.NOT_EQUAL, new BinaryComparator(item)); get.setFilter(filter); Result r = table.get(get); System.out.println(r); // (1) prints "keyvalues=NONE" System.out.println(Bytes.toString(r.getRow())); // (2) throws NullpointerException printing out the result shows that all columns in a row was filtered out. but i still want to print out the row key of the empty result. But the value of r.getRow() is null Shouldn't r.getRow() return the rowkey even if the keyvalues are emtpy? -- *Benjamin Kim** benkimkimben at gmail* --0016e6d7e3501db71004c1228739--