Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def XYZ():Unit={
- var collector = Set[String]()
- for ( x ← RDD ) {
- var str = checkValidity(x)
- if (str != "wrong") { collector+=str } else { println("do Nothing") }
- collector .foreach(x ⇒ println("Set printing in FOR =>" + x))
- }
- collector .foreach(x ⇒ println("Set printing in FUNC =>" + x))
- }
Add Comment
Please, Sign In to add comment