You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Rares Vernica (JIRA)" <ji...@apache.org> on 2009/06/13 06:49:07 UTC

[jira] Issue Comment Edited: (HADOOP-4545) Add an example of a secondary sort

    [ https://issues.apache.org/jira/browse/HADOOP-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719076#action_12719076 ] 

Rares Vernica edited comment on HADOOP-4545 at 6/12/09 9:48 PM:
----------------------------------------------------------------

In the example, is there a typo in the hashCode function of IntPair?

{noformat}
    public int hashCode() {
      return first * 157 + second;
                             ^^^
                            127?
    }
{noformat}

Here is the .java file: http://svn.apache.org/viewvc/hadoop/core/trunk/src/examples/org/apache/hadoop/examples/SecondarySort.java

      was (Author: rvernica):
    In the example, is there a typo in the hashCode function of IntPair?

    public int hashCode() {
      return first * 157 + second;

                             ^^^

                            127?

    }

Here is the .java file: http://svn.apache.org/viewvc/hadoop/core/trunk/src/examples/org/apache/hadoop/examples/SecondarySort.java
  
> Add an example of a secondary sort
> ----------------------------------
>
>                 Key: HADOOP-4545
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4545
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>             Fix For: 0.20.0
>
>         Attachments: h4545.patch, h4545.patch
>
>
> We should have an example of using secondary sort.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.