list map and conditions in scala code example
Example: rdd. map with condition
val statuses = tweets.map(status => if (status.isTruncate) None else Some(status.getText)).flatten
val statuses = tweets.map(status => if (status.isTruncate) None else Some(status.getText)).flatten