Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> checkAnd...


+
Lior Schachter 2013-04-27, 13:02
+
Ted Yu 2013-04-27, 13:23
+
Jean-Marc Spaggiari 2013-04-27, 13:46
Copy link to this message
-
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 <
[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>:
> > 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 <[EMAIL PROTECTED]>
> 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
> >>
>
+
Mike Spreitzer 2013-05-14, 18:25
+
Lior Schachter 2013-05-15, 17:18
+
Liu, Raymond 2013-05-16, 03:20
+
Lior Schachter 2013-04-27, 13:45
+
Ted Yu 2013-04-27, 22:32
+
Asaf Mesika 2013-04-28, 19:55
+
Lior Schachter 2013-04-30, 19:25