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 Map<Object,Pair<Integer,Integer>> |
reducerMap |
protected static TupleFactory |
tf |
protected 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 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-2017 The Apache Software Foundation