Re: Questions about managed operator state
Posted by
Boris Lublinsky on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Questions-about-managed-operator-state-tp17772p17781.html
Thanks Fabian,
After I switched to var it compiles, but its not initialized.
@transient private var currentModels : MapState[String, Model] = _
Assignes null to MapState.
Do I create an empty hashMap there?
Hi Boris,
the CheckpointedRestoring interface was removed in Flink 1.4.0 (and deprecated in an earlier version). Unfortunately, the docs have not been updated accordingly. I'll open a JIRA to fix this.
The replacements for CheckpointedRestoring are the CheckpointedFunction or ListCheckpointed interfaces (see [1]).
I think the compile error is caused because you define newModels as val and not as var.
Best, Fabian