Hi,
I have a  DStream called eventData and it contains set of  Data objects
defined as followed:

case class Data(startDate: Long, endDate: Long, className: String, id:
String, state: String)

How would the reducer and inverse reducer functions look like if I would
like to add the data for current 3 second and filter out the last 3 second
data?

eventData.reduceByWindow(/reduceFunc/, /invReduceFunc/, Minutes(15),
Seconds(3))

Thanks
Ali



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Streaming-reduceByWindow-reduceFunc-invReduceFunc-windowDuration-slideDuration-tp11591.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to