You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Mohit Anchlia <mo...@gmail.com> on 2012/07/18 21:05:49 UTC

Scanning columns

I am designing a HBase schema as a timeseries model. Taking advice from the
definitive guide and tsdb I am planning to use my row key as
"metricname:Long.MAX_VALUE - basetimestamp". And the column names would be
"timestamp-base timestamp". My col names would then look like 1,2,3,4,5
.. for instance. I am looking at Java API to see if I can do a range scan
of columns, can I say fetch me columns starting at 1 and stop at 4? I see a
scanner class for row scans but wondering if columns are sorted before
storing and if I can do a range scan on them too.

Re: Scanning columns

Posted by Jerry Lam <ch...@gmail.com>.
Hi,

This sounds like you are looking for ColumnRangeFilter?

Best Regards,
Jerry

On Wednesday, July 18, 2012, Mohit Anchlia wrote:

> I am designing a HBase schema as a timeseries model. Taking advice from the
> definitive guide and tsdb I am planning to use my row key as
> "metricname:Long.MAX_VALUE - basetimestamp". And the column names would be
> "timestamp-base timestamp". My col names would then look like 1,2,3,4,5
> .. for instance. I am looking at Java API to see if I can do a range scan
> of columns, can I say fetch me columns starting at 1 and stop at 4? I see a
> scanner class for row scans but wondering if columns are sorted before
> storing and if I can do a range scan on them too.
>