You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gearpump.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/06 13:03:33 UTC

[jira] [Commented] (GEARPUMP-289) Add FoldFunction

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

ASF GitHub Bot commented on GEARPUMP-289:
-----------------------------------------

GitHub user manuzhang opened a pull request:

    https://github.com/apache/incubator-gearpump/pull/167

    [GEARPUMP-289] Add FoldFunction

    Be sure to do all of the following to help us incorporate your contribution
    quickly and easily:
    
     - [ ] Make sure the commit message is formatted like:
       `[GEARPUMP-<Jira issue #>] Meaningful description of pull request` 
     - [ ] Make sure tests pass via `sbt clean test`.
     - [ ] Make sure old documentation affected by the pull request has been updated and new documentation added for new functionality. 
    


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

    $ git pull https://github.com/manuzhang/incubator-gearpump fold

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

    https://github.com/apache/incubator-gearpump/pull/167.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 #167
    
----
commit 4cb76f555efc193aeaa84be100e4243978d0b903
Author: manuzhang <ow...@gmail.com>
Date:   2017-03-06T12:56:43Z

    [GEARPUMP-289] Add FoldFunction

----


> Add FoldFunction
> ----------------
>
>                 Key: GEARPUMP-289
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-289
>             Project: Apache Gearpump
>          Issue Type: Sub-task
>          Components: streaming
>    Affects Versions: 0.8.2
>            Reporter: Manu Zhang
>            Assignee: Manu Zhang
>
> {{FoldFunction}} is a more general case of the existing {{ReduceFunction}}. It allows users to combine input values and put it into an accumulator (e.g. {{Collection}}). Without it, we have to firstly map an element to a collection and reduce over all collections, which is verbose and inefficient. 



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