Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
rdd. map with condition
Tom Hunt
Programming language:
Java
2021-04-12 07:49:28
1
Q:
rdd. map with condition
M K
Code:
Java
2021-05-05 17:29:31
val statuses = tweets.map(status => if (status.isTruncate) None else Some(status.getText)).flatten
1
Tags
con
map
Related
Java sort Map by values
difference between hashmap and map java
how to add two map values in java
New to Communities?
Join the community