Re: Scanning columns

2012-07-18 Thread Jerry Lam
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.
>


Scanning columns

2012-07-18 Thread Mohit Anchlia
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.