accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Slacum <wilhelm.von.cl...@accumulo.net>
Subject Re: Another Clojure-driven Combiner (with a histogram example)
Date Thu, 27 Jun 2013 16:12:16 GMT
CLOJURE  :-D That's really cool!


On Thu, Jun 27, 2013 at 12:00 PM, Jamie Stephens <js@morphism.com> wrote:

> 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