You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Shaikh Ahmed <rn...@gmail.com> on 2014/06/01 00:29:31 UTC

HBase counter and Table row update

Hi All,

I am using HBase counter to count of number of rows in HBase table.

We want to count only the number of current records not the old versions.

incrementColumnValues is increasind the rows count if even the exiting row
is updated.

How I can increase the counter only if new row is added to table.

Thanks in advance.

Regards,
Riyaz

Re: HBase counter and Table row update

Posted by Ted Yu <yu...@gmail.com>.
Can you provide a bit more context of how you use HTable#incrementColumnValue()
?
This method increments a column value of type long.

Cheers


On Sat, May 31, 2014 at 3:29 PM, Shaikh Ahmed <rn...@gmail.com> wrote:

> Hi All,
>
> I am using HBase counter to count of number of rows in HBase table.
>
> We want to count only the number of current records not the old versions.
>
> incrementColumnValues is increasind the rows count if even the exiting row
> is updated.
>
> How I can increase the counter only if new row is added to table.
>
> Thanks in advance.
>
> Regards,
> Riyaz
>