Hi,

My incoming message has time stamp as one field and i have to perform
aggregation over 3 minute of time slice.

Message sample

"Item ID" "Item Type" "timeStamp"
1                  X               1-12-2014:12:01
1                  X               1-12-2014:12:02
1                  X               1-12-2014:12:03
1                  y               1-12-2014:12:04
1                  y               1-12-2014:12:05
1                  y               1-12-2014:12:06

Aggregation Result
ItemId        ItemType      count   aggregationStartTime    aggrEndTime
1                  X                     3          1-12-2014:12:01
1-12-2014:12:03
1                  y                      3       1-12-2014:12:04
 1-12-2014:12:06

What is the best way to perform time based aggregation in spark.
Kindly suggest.

Thanks




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Time-based-aggregation-in-Real-time-Spark-Streaming-tp20102.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to