Skip to content

Instantly share code, notes, and snippets.

@michaelr524
Created May 3, 2014 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelr524/14cc830a36e7c7d296c9 to your computer and use it in GitHub Desktop.
Save michaelr524/14cc830a36e7c7d296c9 to your computer and use it in GitHub Desktop.
(ns my.scheme
(:require [avroclj.avro :as avro]))
(defn create-scheme []
(reify backtype.storm.spout.MultiScheme
(deserialize [this bytes]
(let [_ (require '[avroclj.avro :as avro])]
(avroclj.avro/deserialize bytes)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment