You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ac...@apache.org on 2012/03/29 18:52:08 UTC

svn commit: r1306984 - in /hadoop/common/branches/branch-1: CHANGES.txt src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java

Author: acmurthy
Date: Thu Mar 29 16:52:08 2012
New Revision: 1306984

URL: http://svn.apache.org/viewvc?rev=1306984&view=rev
Log:
HADOOP-5528. Ensure BinaryPartitioner is present in mapred libs. Contributed by Klaas Bosteels.

Added:
    hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java
Modified:
    hadoop/common/branches/branch-1/CHANGES.txt

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1306984&r1=1306983&r2=1306984&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Thu Mar 29 16:52:08 2012
@@ -205,6 +205,9 @@ Release 1.0.3 - unreleased
     MAPREDUCE-3377. Ensure OutputCommitter.checkOutputSpecs is called prior to
     copying job.xml. (Jane Chen via acmurthy)
 
+    HADOOP-5528. Ensure BinaryPartitioner is present in mapred libs. (Klaas
+    Bosteels via acmurthy)
+
 Release 1.0.2 - 2012.03.24
 
   NEW FEATURES

Added: hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java?rev=1306984&view=auto
==============================================================================
--- hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java (added)
+++ hadoop/common/branches/branch-1/src/mapred/org/apache/hadoop/mapred/lib/BinaryPartitioner.java Thu Mar 29 16:52:08 2012
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.mapred.lib;
+
+import org.apache.hadoop.io.BinaryComparable;
+import org.apache.hadoop.mapred.JobConf;
+import org.apache.hadoop.mapred.Partitioner;
+
+/**
+ * Partition {@link BinaryComparable} keys using a configurable part of 
+ * the bytes array returned by {@link BinaryComparable#getBytes()}. 
+ * 
+ * @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner
+ */
+public class BinaryPartitioner<V>  
+  extends org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner<V>
+  implements Partitioner<BinaryComparable, V> {
+  
+  public void configure(JobConf job) {
+    super.setConf(job);
+  }
+  
+}