hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From N Keywal <nkey...@gmail.com>
Subject Re: Retrieve Column Family and Column with Java API
Date Mon, 12 Mar 2012 14:51:43 GMT
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 <negahi.mahdi@hotmail.com>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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message