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 <code>m</code> reduce tasks the intermediate key (and hence
the
* record) is sent for reduction.</p>
*
+ * Note: If you require your Partitioner class to obtain the Job's
configuration
+ * object, implement the {@link Configurable} interface.
+ *
* @see Reducer
*/
@InterfaceAudience.Public