1
2
3
4
5
6
class MyClass {
val field = "Hello"
def doStuff(rdd: RDD[String]): RDD[String] = {
val field_ = this.field
rdd.map(x => field_ + x)}
}

Comments

2016-08-11