aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/main/scala
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-08-23 17:26:45 -0700
committerBryan Newbold <bnewbold@archive.org>2018-08-23 17:26:45 -0700
commit0fd0d3970f2c5c7bbdede25ac7d42decfda6609f (patch)
tree20134b76bf7fbcee89588959b81db73e5a1b3b83 /scalding/src/main/scala
parent0e847f052b3347e74921361fa2ab001d54c75105 (diff)
downloadsandcrawler-0fd0d3970f2c5c7bbdede25ac7d42decfda6609f.tar.gz
sandcrawler-0fd0d3970f2c5c7bbdede25ac7d42decfda6609f.zip
clean up commented-out code in ScoreJob.scala
Diffstat (limited to 'scalding/src/main/scala')
-rw-r--r--scalding/src/main/scala/sandcrawler/ScoreJob.scala30
1 files changed, 0 insertions, 30 deletions
diff --git a/scalding/src/main/scala/sandcrawler/ScoreJob.scala b/scalding/src/main/scala/sandcrawler/ScoreJob.scala
index 28e9132..6d9cecd 100644
--- a/scalding/src/main/scala/sandcrawler/ScoreJob.scala
+++ b/scalding/src/main/scala/sandcrawler/ScoreJob.scala
@@ -28,33 +28,3 @@ class ScoreJob(args: Args) extends JobBase(args) {
.map { entry => (entry.slug, entry.score, entry.json1, entry.json2) }
.write(TypedTsv[(String, Int, String, String)](args("output")))
}
-
-/*
-// Ugly hack to get non-String information into ScoreJob above.
-object ScoreJob {
- var scorable1 : Option[Scorable] = None
- var scorable2 : Option[Scorable] = None
-
- def setScorable1(s : Scorable) {
- scorable1 = Some(s)
- }
-
- def getScorable1() : Scorable = {
- scorable1 match {
- case Some(s) => s
- case None => null
- }
- }
-
- def setScorable2(s: Scorable) {
- scorable2 = Some(s)
- }
-
- def getScorable2() : Scorable = {
- scorable2 match {
- case Some(s) => s
- case None => null
- }
- }
-}
- */