public class RangePartitioner<K,V> extends Object implements org.apache.hadoop.mapred.Partitioner<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Writable>
| Constructor and Description |
|---|
RangePartitioner() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf job) |
int |
getPartition(org.apache.hadoop.io.IntWritable key,
org.apache.hadoop.io.Writable value,
int numReduceTasks) |
public int getPartition(org.apache.hadoop.io.IntWritable key,
org.apache.hadoop.io.Writable value,
int numReduceTasks)
getPartition in interface org.apache.hadoop.mapred.Partitioner<org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Writable>public void configure(org.apache.hadoop.mapred.JobConf job)
configure in interface org.apache.hadoop.mapred.JobConfigurableCopyright © 2015. All rights reserved.