public class WeightedRangePartitioner extends org.apache.hadoop.mapreduce.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable> implements org.apache.hadoop.conf.Configurable
Modifier and Type | Field and Description |
---|---|
static java.util.Map<PigNullableWritable,DiscreteProbabilitySampleGenerator> |
weightedParts |
Constructor and Description |
---|
WeightedRangePartitioner() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(PigNullableWritable key,
org.apache.hadoop.io.Writable value,
int numPartitions) |
void |
setConf(org.apache.hadoop.conf.Configuration configuration) |
public static final java.util.Map<PigNullableWritable,DiscreteProbabilitySampleGenerator> weightedParts
public int getPartition(PigNullableWritable key, 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 configuration)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2007-2012 The Apache Software Foundation