You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by ZhaoWei <wz...@gmail.com> on 2008/06/27 09:39:57 UTC

Get all columns of a column family

Hi, I have 2 questions about column family

1. HTable.get() only return the value of a column in a row, how to get all values of a column family in a row? I guess the answer is obtainScanner, right?

2. Is multiple column families supported? Can I have a column like fam1:fam2:col?

Thanks in advance.

Re: Get all columns of a column family

Posted by Jean-Daniel Cryans <jd...@gmail.com>.
Answers inline.

J-D

2008/6/27 ZhaoWei <wz...@gmail.com>:

> Hi, I have 2 questions about column family


>
> 1. HTable.get() only return the value of a column in a row, how to get all
> values of a column family in a row? I guess the answer is obtainScanner,
> right?


obtainScanner or getRow


>
>
> 2. Is multiple column families supported? Can I have a column like
> fam1:fam2:col?


Nope, it isn't. But either using the timestamps or putting semi-structured
data in your cell would enable pretty much the same behavior.


>
>
> Thanks in advance.
>