accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Stephens ...@morphism.com>
Subject Another Clojure-driven Combiner (with a histogram example)
Date Thu, 27 Jun 2013 16:00:21 GMT
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

Mime
View raw message