diff options
author | Ellen Spertus <ellen.spertus@gmail.com> | 2018-08-12 18:41:27 -0700 |
---|---|---|
committer | Ellen Spertus <ellen.spertus@gmail.com> | 2018-08-12 18:41:27 -0700 |
commit | 05c0213547f29842bbae6faaf77e983a364d4a2e (patch) | |
tree | 5001b54b1fe8dc9c01d8142e82de684dd561eef7 /scalding/src/main/scala | |
parent | 31354b1a6062c5c56a30610f68fa48c82a7e83f0 (diff) | |
download | sandcrawler-05c0213547f29842bbae6faaf77e983a364d4a2e.tar.gz sandcrawler-05c0213547f29842bbae6faaf77e983a364d4a2e.zip |
Added back file I shouldn't have deleted.
Diffstat (limited to 'scalding/src/main/scala')
-rw-r--r-- | scalding/src/main/scala/sandcrawler/CrossrefScorable.scala | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala index 5113b0c..667a5cc 100644 --- a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala +++ b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala @@ -64,25 +64,3 @@ class CrossrefScorable extends Scorable with HBasePipeConversions { } } } - -/* -object CrossrefScorable { - def simplifyJson(json : String) : Option[Map[String, Any]] = { - Scorable.jsonToMap(json) match { - case None => None - case Some(map) => { - if (map contains "title") { - val titles = map("title").asInstanceOf[List[String]] - if (titles.isEmpty) { - None - } else { - Some(Map("title" -> titles(0))) - } - } else { - None - } - } - } - } -} - */ |