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 # user >> Another Clojure-driven Combiner (with a histogram example)


Copy link to this message
-
Another Clojure-driven Combiner (with a histogram example)
One more for this morning.

A Clojure-driven, seq-based Combiner:

  https://gist.github.com/jsmorph/5877553

This combiner differs from

  https://github.com/charlessimpson/clojure-accumulo-iterators

in that this combiner delegates the iteration to the Clojure code.

For example, give the combiner the following Clojure code

  https://gist.github.com/jsmorph/5877553#file-histogram-clj

and you can then do

foo> insert b c x a
foo> insert b c x b
foo> insert b c x b
foo> insert b c x c
foo> insert b c x c
foo> insert b c x c
foo> insert b c x c
foo> insert b c x d
foo> scan
b c:x []    a,1;b,2;c,4;d,1
As usual, fixes and suggestions appreciated.

--Jamie
+
William Slacum 2013-06-27, 16:12
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