flatmap?
-- Chris Miller On Thu, Apr 7, 2016 at 10:25 PM, greg huang <debin.hu...@gmail.com> wrote: > Hi All, > > Can someone give me a example code to get rid of the empty string in > JavaRDD<String>? I kwon there is a filter method in JavaRDD<T>: > https://spark.apache.org/docs/1.6.0/api/java/org/apache/spark/rdd/RDD.html#filter(scala.Function1) > > Regards, > Greg >