Return-Path: X-Original-To: apmail-hadoop-mapreduce-commits-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BC242671 for ; Thu, 5 May 2011 15:41:07 +0000 (UTC) Received: (qmail 61964 invoked by uid 500); 5 May 2011 15:41:07 -0000 Delivered-To: apmail-hadoop-mapreduce-commits-archive@hadoop.apache.org Received: (qmail 61911 invoked by uid 500); 5 May 2011 15:41:06 -0000 Mailing-List: contact mapreduce-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-commits@hadoop.apache.org Received: (qmail 61903 invoked by uid 99); 5 May 2011 15:41:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 15:41:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 15:41:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 19B5E238896F; Thu, 5 May 2011 15:40:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1099847 - in /hadoop/mapreduce/trunk: CHANGES.txt src/java/org/apache/hadoop/mapreduce/Partitioner.java Date: Thu, 05 May 2011 15:40:43 -0000 To: mapreduce-commits@hadoop.apache.org From: todd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110505154043.19B5E238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: todd Date: Thu May 5 15:40:42 2011 New Revision: 1099847 URL: http://svn.apache.org/viewvc?rev=1099847&view=rev Log: MAPREDUCE-2474. Add docs to the new API Partitioner on how to access the Job Configuration. Contributed by Harsh J Chouraria. Modified: hadoop/mapreduce/trunk/CHANGES.txt hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/Partitioner.java Modified: hadoop/mapreduce/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=1099847&r1=1099846&r2=1099847&view=diff ============================================================================== --- hadoop/mapreduce/trunk/CHANGES.txt (original) +++ hadoop/mapreduce/trunk/CHANGES.txt Thu May 5 15:40:42 2011 @@ -74,6 +74,9 @@ Trunk (unreleased changes) MAPREDUCE-2420. JobTracker should be able to renew delegation token over HTTP (Boris Shkolnik via jitendra) + + MAPREDUCE-2474. Add docs to the new API Partitioner on how to access the + Job Configuration. (Harsh J Chouraria via todd) OPTIMIZATIONS Modified: hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/Partitioner.java URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/Partitioner.java?rev=1099847&r1=1099846&r2=1099847&view=diff ============================================================================== --- hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/Partitioner.java (original) +++ hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapreduce/Partitioner.java Thu May 5 15:40:42 2011 @@ -20,6 +20,7 @@ package org.apache.hadoop.mapreduce; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.conf.Configurable; /** * Partitions the key space. @@ -31,6 +32,9 @@ import org.apache.hadoop.classification. * which of the m reduce tasks the intermediate key (and hence the * record) is sent for reduction.

* + * Note: If you require your Partitioner class to obtain the Job's configuration + * object, implement the {@link Configurable} interface. + * * @see Reducer */ @InterfaceAudience.Public