flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabian Hueske <fhue...@gmail.com>
Subject Re: State sharing across trigger and evictor
Date Mon, 16 Jul 2018 09:17:42 GMT

I don't think that is possible.
The Evictor interface does not provide access to a state store, so there is
no way to access state.

Best, Fabian

2018-07-10 13:26 GMT+02:00 Jayant Ameta <wittyameta@gmail.com>:

> Hi,
> I'm using the GlobalWindow with a custom CountTrigger (similar to the
> CountTrigger provided by flink).
> I'm also using an evictor to remove some of the elements from the window.
> Is it possible to update the count when an element is evicted? For example:
> can I access the ReducingState used by the countTrigger from my Evictor
> class, so that the count always reflects the number of elements in the
> windows?
> Jayant Ameta

View raw message