You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Tzu-Li (Gordon) Tai (JIRA)" <ji...@apache.org> on 2017/04/19 02:31:41 UTC

[jira] [Created] (FLINK-6324) Refine state access methods in OperatorStateStore

Tzu-Li (Gordon) Tai created FLINK-6324:
------------------------------------------

             Summary: Refine state access methods in OperatorStateStore
                 Key: FLINK-6324
                 URL: https://issues.apache.org/jira/browse/FLINK-6324
             Project: Flink
          Issue Type: Improvement
          Components: DataStream API, State Backends, Checkpointing
            Reporter: Tzu-Li (Gordon) Tai
            Assignee: Tzu-Li (Gordon) Tai


This proposes to refine the OperatorStateStore interface by,
    - deprecating Java serialization shortcuts
    - rename getOperatorState to getListState

The Java serialization shortcuts can be deprecated because they were
previously introduced to provide a smoother migration path from older
savepoints. However, its usage should definitely be discouraged.

Renaming to {{getListState}} is a preparation of making the names of state
access methods contain information about both its redistribution pattern
on restore and the shape of its data structure, since the combination of
these two is orthogonal. This convention will also provide a better
naming pattern for more state access methods in the future, for example
{{getUnionListState}}. If the method name does not contain its
redistribution pattern (e.g., {{getListState}}), then it simply implies the
default repartitioning scheme (SPLIT_DISTRIBUTE).



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