com.spark_helper.SparkHelper
Flattens an RDD of Option[T] to RDD[T].
Option[T]
RDD[T]
sc.parallelize(Array(Some(1), None, Some(2))).flatten == sc.parallelize(Array(Seq(1, 2)))
the flat RDD as RDD.flatMap(x => x) or List.flatten would have.
RDD.flatMap(x => x)
List.flatten