hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: checkAnd...
Date Sat, 27 Apr 2013 13:46:12 GMT
Hi Ted,

Will it be a good idea to add it? Should we open a JIRA and implement
checkANDIncrement? Might be pretty simple.

JM

2013/4/27 Ted Yu <yuzhihong@gmail.com>:
> Take a look at the following method in HRegionServer:
>
>   public boolean checkAndPut(final byte[] regionName, final byte[] row,
>       final byte[] family, final byte[] qualifier, final byte[] value,
>       final Put put) throws IOException {
>
> You can create checkAndIncrement() in a similar way.
>
> Cheers
>
> On Sat, Apr 27, 2013 at 9:02 PM, Lior Schachter <liorsav@gmail.com> wrote:
>
>> Hi,
>> I want to increment a cell value only after checking a condition on another
>> cell. I could find checkAndPut/checkAndDelete on HTableInteface. It seems
>> that checkAndIncrement (and checkAndAppend) are missing.
>>
>> Can you suggest a workaround for my use-case ?  working with version
>> 0.94.5.
>>
>> Thanks,
>> Lior
>>

Mime
View raw message