Re: Queryable State - Count within Time Window

2018-01-10 Thread Velumani Duraisamy
Thank you, Fabian, for the references. This is helpful. -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/

Re: Queryable State - Count within Time Window

2018-01-09 Thread Fabian Hueske
Hi, you can implement that with a ProcessFunction [1]. The ProcessFunction would have to compute counts at some granularity (either event-time or processing-time) of records that are processed by the ProcessFunction in processElement(). I would do this with a MapState that has a timestamp as key

Queryable State - Count within Time Window

2018-01-08 Thread Velu Mitwa
Hi, I want to find the number of events happened so far in last 5 minutes and make that as a Queryable state. Is it possible? It will be of great help if someone provide some sample code for the same. Thanks, Velu.