Created
March 13, 2014 21:32
-
-
Save htr/9537405 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Yada(args:Args) extends CascadeJob(args) { | |
val out = Tsv(args("output"),'a) | |
override def jobs: Seq[Job] = List(new First(args), new Second(args)); | |
class First(args:Args) extends Job(args) { | |
val s = IterableSource(List[Int](1,2,3,4,5,6,7,6,5,4,3,2), 'a) | |
.write(out) | |
} | |
class Second(args:Args) extends Job(args) { | |
val x = out.read | |
.map('a,'a) { x:String => "x.." + x} | |
.write(Tsv(args("output2"))) | |
} | |
override def validate { | |
jobs.foreach { _.validate } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment