Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created November 10, 2009 22:45
Show Gist options
  • Save rboyd/231341 to your computer and use it in GitHub Desktop.
Save rboyd/231341 to your computer and use it in GitHub Desktop.
(def encoders (config-keys
(config-for :cars :license (fn [car-map]
(car-map :license)))))
(def decoders (config-keys
(config-for :cars :license (fn [value]
value))))
(def keys-config {:encode encoders :decode decoders})
(binding [*hbase-master* "localhost:60000"
*primary-keys-config* keys-config *single-column-family?* false]
(let [cars {:cars [{:make "honda" :model "fit" :license "ah12001"}
{:make "toyota" :model "yaris" :license "xb3"}]}]
(capjure-insert cars "cars" "1"))
(shutdown-agents))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment