hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lior Schachter <lior...@gmail.com>
Subject Re: checkAnd...
Date Wed, 15 May 2013 17:18:23 GMT
yes, I believe this will cover most of the use-cases.

Lior


On Tue, May 14, 2013 at 9:25 PM, Mike Spreitzer <mspreitz@us.ibm.com> wrote:

> Why not go whole hog and create checkAndMultiMutate (for all varieties of
> mutation) (all on the same row)?
>
> Thanks,
> Mike
>
>
>
> From:   Lior Schachter <liorsav@gmail.com>
> To:     user <user@hbase.apache.org>,
> Date:   04/27/2013 10:31 AM
> Subject:        Re: checkAnd...
>
>
>
> found the checkAndIncrement Jira -
> HBASE-6712<https://issues.apache.org/jira/browse/HBASE-6712>
> .
> Would be nice to have also checkandAppend.
>
> Any ideas how to solve to the use case I described ?
>
>
> On Sat, Apr 27, 2013 at 4:46 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message