diff options
author | Ellen Spertus <ellen.spertus@gmail.com> | 2018-06-03 16:54:08 -0700 |
---|---|---|
committer | Ellen Spertus <ellen.spertus@gmail.com> | 2018-06-03 16:54:08 -0700 |
commit | a9fe176a305b474050727d80c1f42941ecf1a2dc (patch) | |
tree | 0f2596b134c169d69742b12d3c1defe6949b231b /scalding/src/main/scala/sandcrawler/HBaseBuilder.scala | |
parent | 5da6d85175992fae019e1d4d1ebeb4accfec1820 (diff) | |
download | sandcrawler-a9fe176a305b474050727d80c1f42941ecf1a2dc.tar.gz sandcrawler-a9fe176a305b474050727d80c1f42941ecf1a2dc.zip |
Added HBaseBuilder.build() and had HBaseRowCountJob call it.
Diffstat (limited to 'scalding/src/main/scala/sandcrawler/HBaseBuilder.scala')
-rw-r--r-- | scalding/src/main/scala/sandcrawler/HBaseBuilder.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scalding/src/main/scala/sandcrawler/HBaseBuilder.scala b/scalding/src/main/scala/sandcrawler/HBaseBuilder.scala index c55aef6..35aeb46 100644 --- a/scalding/src/main/scala/sandcrawler/HBaseBuilder.scala +++ b/scalding/src/main/scala/sandcrawler/HBaseBuilder.scala @@ -40,10 +40,8 @@ object HBaseBuilder { (families, groupedColNames.map({fields => new Fields(fields : _*)})) } - /* - def build(table: String, server: String, colSpec: List[String], sourceMode: SourceMode, keyList: List[String]) { - val (families: List[String], fields: List[Fields]) = parseColSpec(colSpec) + def build(table: String, server: String, colSpec: List[String], sourceMode: SourceMode, keyList: List[String] = List("key")) = { + val (families, fields) = parseColSpec(colSpec) new HBaseSource(table, server, new Fields("key"), families, fields, sourceMode = sourceMode, keyList = keyList) } - */ } |