org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners
Class WeightedRangePartitioner
java.lang.Object
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners.WeightedRangePartitioner
- All Implemented Interfaces:
- org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable>
public class WeightedRangePartitioner
- extends Object
- implements org.apache.hadoop.mapred.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
weightedParts
public static final Map<PigNullableWritable,DiscreteProbabilitySampleGenerator> weightedParts
WeightedRangePartitioner
public WeightedRangePartitioner()
getPartition
public int getPartition(PigNullableWritable key,
org.apache.hadoop.io.Writable value,
int numPartitions)
- Specified by:
getPartition
in interface org.apache.hadoop.mapred.Partitioner<PigNullableWritable,org.apache.hadoop.io.Writable>
configure
public void configure(org.apache.hadoop.mapred.JobConf job)
- Specified by:
configure
in interface org.apache.hadoop.mapred.JobConfigurable
Copyright © ${year} The Apache Software Foundation