public class SkewedPartitioner extends org.apache.hadoop.mapreduce.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable> implements org.apache.hadoop.conf.Configurable
Modifier and Type | Field and Description |
---|---|
protected boolean |
inited |
protected java.util.Map<Tuple,Pair<java.lang.Integer,java.lang.Integer>> |
reducerMap |
protected static TupleFactory |
tf |
protected java.lang.Integer |
totalReducers |
Constructor and Description |
---|
SkewedPartitioner() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(PigNullableWritable wrappedKey,
org.apache.hadoop.io.Writable value,
int numPartitions) |
protected void |
init() |
void |
setConf(org.apache.hadoop.conf.Configuration job) |
protected static final TupleFactory tf
protected java.lang.Integer totalReducers
protected boolean inited
public int getPartition(PigNullableWritable wrappedKey, org.apache.hadoop.io.Writable value, int numPartitions)
getPartition
in class org.apache.hadoop.mapreduce.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable>
public void setConf(org.apache.hadoop.conf.Configuration job)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
protected void init()
Copyright © 2007-2012 The Apache Software Foundation