Created
July 27, 2012 15:53
-
-
Save t-ob/3188815 to your computer and use it in GitHub Desktop.
Multiple column families in a tap
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
(defn tweets | |
[] | |
(let [scheme (HBaseScheme. (Fields. (into-array String ["id"])) | |
(into-array String ["base" "raw"]) | |
(into-array [(Fields. (into-array String ["tweet_id" | |
"screen_name" | |
"content" | |
"created_at" | |
"urls"])) | |
(Fields. (into-array String ["topsy_url"]))])) | |
tap (HBaseTap. "tweets" scheme)] | |
tap)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment