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 2015/10/04 20:52:26 UTC

[jira] [Commented] (FLINK-2818) The *ReduceDriver classes have incorrect javadocs

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

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

GitHub user ggevay opened a pull request:

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

    [FLINK-2818] [runtime] Corrected javadocs of *ReduceDriver classes

    - "The iterator is handed to the <code>reduce()</code> method of the ReduceFunction."
    	In the cases of ReduceDriver and AllReduceDriver, it is not the iterator which is handed to reduce(), but the elements pairwise
    - "The iterator returns all records grouped by their key"
    	I guess this is not the case with AllReduceDriver and AllGroupReduceDriver. But someone who knows the code please confirm this!
    - AllGroupReduceDriver refers to "RichGroupFunction"
    	There is no such thing. I guess this should be RichGroupReduceFunction.
    - GroupCombineChainedDriver refers to "GroupCombineDriver"
    	There is no such thing. I guess this should be GroupReduceCombineDriver? (please confirm)
    - *Driver instead of *Task
    
    - In the combineGroup methods in DataSet, SortedGrouping, and UnsortedGrouping, the text of the NullPointerException is wrong.
    - The @return annotation of the first() method refers to "ReduceGroupOperator" instead of "GroupReduceOperator".
    - The javadoc of combineGroup() refers to CombineFunction instead of GroupCombineFunction
    
    - minor typos
    
    - CombineFunction is not used anywhere (except in comments), but I didn't do anything about this, because I'm not sure whether it should be removed, or perhaps there are plans for using it in the future.

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

    $ git pull https://github.com/ggevay/flink reduce-javadocs

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

    https://github.com/apache/flink/pull/1224.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 #1224
    
----
commit 407cd1895f54391fa98f60ce9e39de0c331b4305
Author: Gabor Gevay <gg...@gmail.com>
Date:   2015-10-04T18:29:40Z

    [FLINK-2818] [runtime] Corrected javadocs of *ReduceDriver classes and some methods in the API.

----


> The *ReduceDriver classes have incorrect javadocs
> -------------------------------------------------
>
>                 Key: FLINK-2818
>                 URL: https://issues.apache.org/jira/browse/FLINK-2818
>             Project: Flink
>          Issue Type: Bug
>          Components: Distributed Runtime
>            Reporter: Gabor Gevay
>            Assignee: Gabor Gevay
>            Priority: Trivial
>
> The javadocs of ReduceDriver, AllReduceDriver, AllGroupReduceDriver, GroupReduceDriver, GroupReduceCombineDriver, and GroupCombineChainedDriver are outdated and/or copy-pasted-then-not-correctly-modified, which makes deciphering what all these classes are more difficult.
> PR coming shortly.



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