hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: HBase increment of a specific cell version
Date Mon, 18 Dec 2017 16:49:18 GMT
Hello Alex. We don't have such an ability. Can you say what the use case is
because I at least am having trouble understanding why you would want to do
such a thing.

Thank you,

On Wed, Dec 13, 2017 at 2:07 PM, Alex Loffler <alex@loffler.org> wrote:

> Hi Folks,
> I am using the HBase’s timestamp/version concept to track
> aggregates/counts for time periods/spans.
> The put function allows me to update a specific version, ie.
> put(rk).addColumn(cf, column, version, value)
> But I can’t find a way of incrementing a specific version ie.
> increment(rk).addColumn(cf, column, version, value) doesn’t exist.
> I can only find increment(rk).addColumn(cf, column, value) which exhibits
> the default behaviour of taking the latest version of the cell,
> incrementing it’s value and updating the timestamp/version with
> current-timestamp-millis.
> What I’d really like is an increment to the value in the specified
> cell/version without the version update.
> Am I missing something, is this not possible for some reason in not
> getting, or would it be a good feature request?
> Thanks again for a fantastic platform!
> -Alex.

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