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 8B32F9FA2 for ; Mon, 12 Mar 2012 14:52:12 +0000 (UTC) Received: (qmail 68374 invoked by uid 500); 12 Mar 2012 14:52:10 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 68323 invoked by uid 500); 12 Mar 2012 14:52:10 -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 68313 invoked by uid 99); 12 Mar 2012 14:52:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 14:52:10 +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 (nike.apache.org: domain of nkeywal@gmail.com designates 209.85.212.169 as permitted sender) Received: from [209.85.212.169] (HELO mail-wi0-f169.google.com) (209.85.212.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2012 14:52:03 +0000 Received: by wibhm17 with SMTP id hm17so3375312wib.2 for ; Mon, 12 Mar 2012 07:51:43 -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=2f0or6hv3+ImskfMYE+W8N7qlqBYwZKGAhou9FLGuBw=; b=0zseahM7jkN5CK7tL0NL9Mt+8riopHQLaA4jPpYuXo5PZ7ycF2/3qlTzbPjEFbNWWw DDg0pwvAmSckpv7tjjYTxz9JklTnddfXgOJdm3gPAExNHW0uoz0syVRiBWzsnZjyjLJH CvBJhEkefpMm+yqfers5KJz52RkT+4euCXa2myQ9n3WxkCRDzVD5im5pxbPBbTgVhi9T Js8XR9ewD5XfYua5AMBEyFJzEis+5A6xlzQOONuIMbN5D/TNDYY/gE8Fxfjeu92fmHfJ IbrHPL5SOqL8OtWhgg71rNVoz29XfkKW0+A5oakmYKkvK44WBOxsfJDrMH7laOKfLXZ/ 1Gaw== MIME-Version: 1.0 Received: by 10.180.97.41 with SMTP id dx9mr27954659wib.9.1331563903052; Mon, 12 Mar 2012 07:51:43 -0700 (PDT) Received: by 10.216.47.134 with HTTP; Mon, 12 Mar 2012 07:51:43 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Mar 2012 15:51:43 +0100 Message-ID: Subject: Re: Retrieve Column Family and Column with Java API From: N Keywal To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d044306746fecd704bb0ce1b3 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044306746fecd704bb0ce1b3 Content-Type: text/plain; charset=ISO-8859-1 Hi, Yes and no. No, because as a table can have millions of columns and these columns can be different for every row, the only way to get all the columns is to scan the whole table. Yes, because if you scan the table you can have the columns names. See Result#getMap: it's organized by family --> qualifier --> version --> value And yes, because you can get the column families from the HTableDescriptor. N. On Mon, Mar 12, 2012 at 3:10 PM, Mahdi Negahi wrote: > > Dear All friends > > Is there any way to retrieve a table's column families and columns with > Java. > > for example, i want to scan a table that i know only its name. > --f46d044306746fecd704bb0ce1b3--