hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Batch and checkAndPut
Date Wed, 12 Jun 2013 16:04:19 GMT
You can use HTable.checkAndPut():

  boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier,

      byte[] value, Put put) throws IOException;
Take a look at its javadoc for details.

Cheers

On Wed, Jun 12, 2013 at 2:46 AM, victorspivak <victor.spivak@gmail.com>wrote:

> I saw a similar question but not exactly what I have.I have a row with
> several fields. I would like to update these fields for one row in a batch
> (i assume it will be atomic) but I would like to update them if one of
> these
> fields value satisfy a condition. What are my options? Thanks, Victor
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/Batch-and-checkAndPut-tp4046139.html
> Sent from the HBase Developer mailing list archive at Nabble.com.

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