Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 40592 invoked from network); 13 Jun 2009 04:49:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jun 2009 04:49:21 -0000 Received: (qmail 10675 invoked by uid 500); 13 Jun 2009 04:49:32 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 10614 invoked by uid 500); 13 Jun 2009 04:49:32 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 10602 invoked by uid 99); 13 Jun 2009 04:49:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 04:49:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 04:49:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 99B0329A001B for ; Fri, 12 Jun 2009 21:49:07 -0700 (PDT) Message-ID: <2111216502.1244868547628.JavaMail.jira@brutus> Date: Fri, 12 Jun 2009 21:49:07 -0700 (PDT) From: "Rares Vernica (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Issue Comment Edited: (HADOOP-4545) Add an example of a secondary sort In-Reply-To: <82662312.1225344104194.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.