Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Accumulo, mail # user - Another Clojure-driven Combiner (with a histogram example)


+
Jamie Stephens 2013-06-27, 16:00
Copy link to this message
-
Re: Another Clojure-driven Combiner (with a histogram example)
William Slacum 2013-06-27, 16:12
CLOJURE  :-D That's really cool!
On Thu, Jun 27, 2013 at 12:00 PM, Jamie Stephens <[EMAIL PROTECTED]> 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
>
>