flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tzu-Li (Gordon) Tai (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6324) Refine state access methods in OperatorStateStore
Date Wed, 19 Apr 2017 02:31:41 GMT
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)

Mime
View raw message