Created
January 18, 2012 06:48
-
-
Save sorenmacbeth/1631542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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