You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Nathan Schile (JIRA)" <ji...@apache.org> on 2016/09/29 21:26:20 UTC

[jira] [Updated] (CRUNCH-623) Improve PTable#cogroup Javadoc

     [ https://issues.apache.org/jira/browse/CRUNCH-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Schile updated CRUNCH-623:
---------------------------------
    Attachment: 0001-Improves-Javadoc-of-PTable-cogroup.patch

Patch for Javadoc changes.

> Improve PTable#cogroup Javadoc
> ------------------------------
>
>                 Key: CRUNCH-623
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-623
>             Project: Crunch
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Nathan Schile
>            Assignee: Josh Wills
>            Priority: Trivial
>         Attachments: 0001-Improves-Javadoc-of-PTable-cogroup.patch
>
>
> The Javadoc for PTable#cogroup maybe confusing when comparing it to the PTable#join javadoc
> {noformat}
>   /**
>    * Perform an inner join on this table and the one passed in as an argument on
>    * their common keys.
>    */
>   <U> PTable<K, Pair<V, U>> join(PTable<K, U> other);
>   /**
>    * Co-group operation with the given table on common keys.
>    */
>   <U> PTable<K, Pair<Collection<V>, Collection<U>>> cogroup(PTable<K, U> other);
> {noformat}
> The phrasing of "common keys" in the cogroup method make it sound like the cogroup will be a inner join on the table. I think removing the "common keys" from the cogroup method will remove that confusion.



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