Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Accumulo >> mail # dev >> putIfAbsent ?


+
Joe Stein 2013-05-29, 19:12
Copy link to this message
-
Re: putIfAbsent ?
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 <[EMAIL PROTECTED]> 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
> */
+
Keith Turner 2013-05-29, 20:28
+
Joe Stein 2013-05-30, 16:44
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB