You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "xiemeilong (Jira)" <ji...@apache.org> on 2019/12/31 03:30: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=17005916#comment-17005916 ]
xiemeilong edited comment on FLINK-15436 at 12/31/19 3:29 AM:
--------------------------------------------------------------
[~yunta] Thanks you very much.
For example, I have different rules for every device ,but I don’t want compile the rule repeatly. So I keep it in keyed state ,but the RuleEvaluator maybe not serializable.
{code:java}
public Class PojoClass
{
public RuleDescription[] rules;
public transient RuleEvaluator[] evaluators;
}
{code}
was (Author: xiemeilong):
[~yunta] Thanks you very much.
For example, I have different rules for every device ,but I don’t want compile the rule repeatly. So I keep it in keyed state ,but the RuleEvaluator maybe not serializable.
public Class PojoClass { public RuleDescription[] rules;
public transient RuleEvaluator[] evaluators;
}
> 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)