Created
October 4, 2011 21:28
-
-
Save sorenmacbeth/1262872 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
(ns hbase.cascalog.core | |
(:require [cascalog.workflow :as w]) | |
(:import [cascading.hbase HBaseTap HBaseScheme ByteHolder] | |
[cascading.tuple Fields] | |
org.apache.hadoop.hbase.util.Bytes)) | |
(defn hbase-tap [table-name key-field column-family & value-fields] | |
(let [scheme (HBaseScheme. (w/fields key-field) column-family (w/fields value-fields))] | |
(HBaseTap. table-name scheme))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment