accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <ctubb...@apache.org>
Subject Re: putIfAbsent ?
Date Wed, 29 May 2013 19:17:05 GMT
There is not such a thing in Accumulo. To do that, you'd have to have
your client do the check first. You could do something clever like a
put with a timestamp prior to any timestamp that would exist if the
key had already been there, that way it'll be ignored if a newer one
existed (assuming you have max versions set to 1 on the
VersioningIterator).

--
Christopher L Tubbs II
http://gravatar.com/ctubbsii


On Wed, May 29, 2013 at 3:12 PM, Joe Stein <cryptcom@gmail.com> wrote:
> Hey, so was looking at Mutation and did not see a putIfAbsent function is there such
a thing in Accumulo ?
>
> Thanks!
>
> /*
> Joe Stein, Chief Architect
> http://www.medialets.com
> Twitter: @allthingshadoop
> Mobile: 917-597-9771
> */

Mime
View raw message