You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Xiaogang Shi (JIRA)" <ji...@apache.org> on 2017/02/14 02:46:41 UTC

[jira] [Created] (FLINK-5790) Use list types when ListStateDescriptor extends StateDescriptor

Xiaogang Shi created FLINK-5790:
-----------------------------------

             Summary: Use list types when ListStateDescriptor extends StateDescriptor
                 Key: FLINK-5790
                 URL: https://issues.apache.org/jira/browse/FLINK-5790
             Project: Flink
          Issue Type: Improvement
            Reporter: Xiaogang Shi
            Assignee: Xiaogang Shi


Flink keeps the state serializer in {{StateDescriptor}}, but it's the serializer of list elements  that is put in {{ListStateDescriptor}}. The implementation is a little confusing. Some backends need to construct the state serializer with the element serializer by themselves.

We should use an {{ArrayListSerializer}}, which is composed of the serializer of the element, in the {{ListStateDescriptor}}. It helps the backend to avoid constructing the state serializer.

If a backend needs customized serialization of the state (e.g. {{RocksDBStateBackend}}), it still can obtain the element serializer from the {{ArrayListSerializer}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)