hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: HBase counter and Table row update
Date Sat, 31 May 2014 22:47:16 GMT
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 <rnsr.shaikh@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
>

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