Rishabh
Rishabh

Reputation: 217

Atomic compareAndIncrement in HBase

Is it possible to increment columns in HBase based on some comparison operator atomically ? Both increments and comparisons will be done on same row.

Upvotes: 2

Views: 1269

Answers (1)

Rotem Hermon
Rotem Hermon

Reputation: 2147

A checkAndIncrement method is not implemented yet in HBase. There's a ticket for it - https://issues.apache.org/jira/browse/HBASE-6712.

What's your use? Isn't it something you can do with checkAndPut ?

Upvotes: 2

Related Questions