You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/17 03:26:41 UTC
[jira] [Commented] (FLINK-4856) Add MapState for keyed streams
[ https://issues.apache.org/jira/browse/FLINK-4856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871118#comment-15871118 ]
ASF GitHub Bot commented on FLINK-4856:
---------------------------------------
GitHub user shixiaogang opened a pull request:
https://github.com/apache/flink/pull/3336
[FLINK-4856][state] Add MapState in KeyedState
1. Add `MapState` and `MapStateDescriptor`
2. Implementation of `MapState` in `HeapKeyedStateBackend` and `RocksDBKeyedStateBackend`.
3. Add accessors to `MapState` in `RuntimeContext`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alibaba/flink flink-4856
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3336.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3336
----
commit 430b4f596acbff0a9dfdc20fbb2430a8fad819f9
Author: xiaogang.sxg <xi...@alibaba-inc.com>
Date: 2017-02-17T03:19:18Z
Add MapState in KeyedState
----
> Add MapState for keyed streams
> ------------------------------
>
> Key: FLINK-4856
> URL: https://issues.apache.org/jira/browse/FLINK-4856
> Project: Flink
> Issue Type: New Feature
> Components: State Backends, Checkpointing
> Reporter: Xiaogang Shi
> Assignee: Xiaogang Shi
>
> Many states in keyed streams are organized as key-value pairs. Currently, these states are implemented by storing the entire map into a ValueState or a ListState. The implementation however is very costly because all entries have to be serialized/deserialized when updating a single entry. To improve the efficiency of these states, MapStates are urgently needed.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)