Skip to content

Instantly share code, notes, and snippets.

@t-ob
Created July 27, 2012 15:53
Show Gist options
  • Save t-ob/3188815 to your computer and use it in GitHub Desktop.
Save t-ob/3188815 to your computer and use it in GitHub Desktop.
Multiple column families in a tap
(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