Re: Apache Flink - Manipulating the state of an object in an evictor or trigger

2019-07-19 Thread M Singh
Biao: I am asking this question, just to understand the impact and best practices around it.  The state I am referring to it the objects that are passed to evictor. https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/operators/windows.html#evictors void evictBefore(Iterable>

Re: Apache Flink - Manipulating the state of an object in an evictor or trigger

2019-07-19 Thread Biao Liu
Hi, I don't find any official document about it. There are several state relevant methods in `TriggerContext`. I believe it's absolutely safe to use state in `Trigger` through `TriggerContext`. Regarding to `Evictor`, there is no such methods in `EvictorContext`. After taking a glance on

Re: Apache Flink - Manipulating the state of an object in an evictor or trigger

2019-07-18 Thread taher koitawala
As far as I know. It is completely safe On Fri, Jul 19, 2019, 1:35 AM M Singh wrote: > Just wanted to see if there is any advice on this question. Thanks > > On Sunday, July 14, 2019, 09:07:45 AM EDT, M Singh > wrote: > > > Hi: > > Is it safe to manipulate the state of an object in the

Apache Flink - Manipulating the state of an object in an evictor or trigger

2019-07-14 Thread M Singh
Hi: Is it safe to manipulate the state of an object in the evictor or trigger ?  Are there any best practices/dos and don't on this ? Thanks