GitHub user ymarzougui opened a pull request:

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

    [FLINK-3869] WindowedStream.apply with FoldFunction is too restrictive

    This pull request removes the restriction that a WindowFunction in a 
fold/apply should emit the same type as the accumulator type of the fold. It 
brings the following changes to the Java and Scala APIs:
    
    - Deprecating `apply(ReduceFunction, WindowFunction)` and the restrictive 
`apply(Initial, FoldFunction, WindowFunction)` methods.
    - Replacing them with two methods : `reduce(ReduceFunction, 
WindowFunction)` and a non-restrictive `fold(Initial, FoldFunction, 
WindowFunction)`.
    - Changing some test classes to use the new methods.
    


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

    $ git pull https://github.com/ymarzougui/flink FLINK-3869

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

    https://github.com/apache/flink/pull/2835.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 #2835
    
----
commit df65335dd2193d8a2b956085b0f375db5eb75863
Author: Yassine Marzougui <y.marzou...@mindlytix.com>
Date:   2016-11-19T23:19:10Z

    [FLINK-3869] WindowedStream.apply with FoldFunction is too restrictive

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to