You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yun Tang (Jira)" <ji...@apache.org> on 2020/01/02 09:21:00 UTC
[jira] [Comment Edited] (FLINK-15436) Add a hook of deserialized
for pojo state object.
[ https://issues.apache.org/jira/browse/FLINK-15436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006682#comment-17006682 ]
Yun Tang edited comment on FLINK-15436 at 1/2/20 9:20 AM:
----------------------------------------------------------
[~xiemeilong], Flink would avoid to use java serialization during state serialize. If the {{RuleEvaluator}} did not extend {{Serializable}} interface, you could provide your customized serializer instead of default pojo serializer to (de)serialize that.
As I said above, the time to deserialize class is not the same for different state backends. Compared with so-called hook, providing your customized serializer would be a better choice.
was (Author: yunta):
[~xiemeilong], Flink would avoid to use java serialization during state serialize. If the {{RuleEvaluator}} did not extend {{Serializable}} interface, you could provide your customized serializer instead of default pojo serializer to (de)serialize that. As I said above, the time to deserialize class is not the same for different state backends.
> Add a hook of deserialized for pojo state object.
> ---------------------------------------------------
>
> Key: FLINK-15436
> URL: https://issues.apache.org/jira/browse/FLINK-15436
> Project: Flink
> Issue Type: Wish
> Components: API / Type Serialization System
> Reporter: xiemeilong
> Priority: Major
>
> I need to do some recovery work when state deserialized back, for example , I want to construct a not serializable object to do some custom logic depends on the state and only update it on the state updated.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)