com.ebay.erl.mobius.core.datajoin
Class DataJoinKeyPartitioner<K extends org.apache.hadoop.io.WritableComparable<K>,V extends org.apache.hadoop.io.WritableComparable<V>>

java.lang.Object
  extended by com.ebay.erl.mobius.core.datajoin.DataJoinKeyPartitioner<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<DataJoinKey,DataJoinValue>

public class DataJoinKeyPartitioner<K extends org.apache.hadoop.io.WritableComparable<K>,V extends org.apache.hadoop.io.WritableComparable<V>>
extends java.lang.Object
implements org.apache.hadoop.mapred.Partitioner<DataJoinKey,DataJoinValue>

This product is licensed under the Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0. This product contains portions derived from Apache hadoop which is licensed under the Apache License, Version 2.0, available at http://hadoop.apache.org. © 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan


Constructor Summary
DataJoinKeyPartitioner()
           
 
Method Summary
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 int getPartition(DataJoinKey key, DataJoinValue value, int numPartitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataJoinKeyPartitioner

public DataJoinKeyPartitioner()
Method Detail

getPartition

public int getPartition(DataJoinKey key,
                        DataJoinValue value,
                        int numPartitions)
Specified by:
getPartition in interface org.apache.hadoop.mapred.Partitioner<DataJoinKey,DataJoinValue>

configure

public void configure(org.apache.hadoop.mapred.JobConf job)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable