Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

rdd. map with condition

val statuses = tweets.map(status => if (status.isTruncate) None else Some(status.getText)).flatten
 
PREVIOUS NEXT
Tagged: #map #condition
ADD COMMENT
Topic
Name
1+3 =