i get answer from stack overflow: http://stackoverflow.com/questions/38397688/spark-mapwithstate-api-explanation <http://stackoverflow.com/questions/38397688/spark-mapwithstate-api-explanation>
when key is timeout, the new value is None; in my case, i set value when timeout occurs -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/mapWithState-handle-timeout-tp27422p27492.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe e-mail: user-unsubscr...@spark.apache.org