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 2016/05/02 14:04:12 UTC

[jira] [Commented] (FLINK-3581) Add Special Aligned Event-Time WindowOperator

    [ https://issues.apache.org/jira/browse/FLINK-3581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15266475#comment-15266475 ] 

ASF GitHub Bot commented on FLINK-3581:
---------------------------------------

GitHub user aljoscha opened a pull request:

    https://github.com/apache/flink/pull/1957

    [FLINK-3581] [FLINK-3582] State Iterator and Aligned Time Windows

    This adds two things. A new call `getPartitionedStateForAllKeys` on `AbstractStateBackend` that returns a `StateIterator` that can be used to iterate over all keys with their respective state in a partition.
    
    The second addition is a new special-purpose window operator `AlignedEventTimeWindowOperator` that behaves like `WindowOperator` if a `Sliding/TumblingEventTimeWindows` assigner is used with an `EventTimeTrigger`. The new operator does this without keeping state/timers per window and key, only one timer is kept per window. Upon firing, the new `StateIterator` is used to traverse all keys and emit windows.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aljoscha/flink window-aligned-special-case-as-operator

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1957.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 #1957
    
----
commit 57af40ec71da20e5a9a5052959a3d1f5750c21f8
Author: Aljoscha Krettek <al...@gmail.com>
Date:   2016-03-07T16:06:34Z

    [FLINK-3582] Add Iterator over State for All Keys in Partitioned State

commit 65a0fff2ceca04b7ccfdd8a3632e0a98300d3509
Author: Aljoscha Krettek <al...@gmail.com>
Date:   2016-03-07T16:06:34Z

    [FLINK-3581] Add Special Aligned Event-Time WindowOperator

----


> Add Special Aligned Event-Time WindowOperator
> ---------------------------------------------
>
>                 Key: FLINK-3581
>                 URL: https://issues.apache.org/jira/browse/FLINK-3581
>             Project: Flink
>          Issue Type: Improvement
>          Components: Streaming
>            Reporter: Aljoscha Krettek
>            Assignee: Aljoscha Krettek
>
> The current Window Trigger is per key. Meaning every window has a (logical) Trigger for every key in the window, i.e. there will be state and time triggers per key per window.
> For some types of windows, i.e. based on time it is possible to use a single Trigger to fire for all keys at the same time. In that case we would save a lot of space on state and timers. Which makes state snapshots a lot smaller.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)