Re: Configuring a RichFunction on a DataStream
Posted by
Fabian Hueske-2 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Configuring-a-RichFunction-on-a-DataStream-tp6525p6532.html
Hi Robert,
Function configuration via a Configuration object and the open method is an artifact from the past.
The recommended way is to configure the function object via the constructor.
Flink serializes the function object and ships them to the workers for execution. So the state of a function is preserved. Note, the function object must be serializable with Java serialization.
Best, Fabian