Skip to content

Instantly share code, notes, and snippets.

@sorenmacbeth
Created January 18, 2012 06:48
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 sorenmacbeth/1631542 to your computer and use it in GitHub Desktop.
Save sorenmacbeth/1631542 to your computer and use it in GitHub Desktop.
(gen-class :name ybot.hadoop.formats.SimpleRecordStreamFactory
:implements backtype.hadoop.formats.RecordStreamFactory
:prefix "recordfactory-")
(defn recordfactory-getInputStream [^FileSystem fs ^Path p]
(SimpleInputStream. (.open fs p)))
(defn recordfactory-getOutputStream [^FileSystem fs ^Path p]
(SimpleOutputStream. (.create fs p)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment