Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val a = sc.textFile("/user/cts367689/datagen.txt")
- val b = a.map(x => (x.split(",")(0),x.split(",")(2),x.split(4))))
- val c = b.filter(x => (x._3.toInt > 500))
- c.foreach(x => println(x))
- c.foreach {x => {println(x)}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement