Re: questions on custom state with flink window

2017-03-10 Thread Nico Kruber
Hi Sai, 3) If you want to make "Managed Keyed State" queryable, you have to set it as queryable through the API, e.g.: final ValueStateDescriptor query1State = new ValueStateDescriptor<>("stateName", Long.class); query1State.setQueryable("queryName"); The

Re: questions on custom state with flink window

2017-03-10 Thread Robert Metzger
Hi Sai, 1) I think its okay to keep state in a RichWindowFunction. 2) I think it stays forever, yes 3) I'm including Nico, he can probably help you with the queryable state question. 4) I guess that's a queryable state question too. On Fri, Mar 10, 2017 at 1:04 AM, saiprasad mishra wrote: > Hi

questions on custom state with flink window

2017-03-09 Thread saiprasad mishra
Hi All I have few questions on understanding state with flink 1) Is it advisable to create custom state within a RichWindowFunction function. I am able to create it but 2) If I create state in the window function then does the state remain for ever as I want the state to stay for ever 3) Also on