public class JoinPartitioner extends org.apache.hadoop.mapreduce.Partitioner<JoinGroupWritable,RecordInfo> implements org.apache.hadoop.conf.Configurable
Partitioner. Loads a previously generated PartitioningResult and distributes the spatial partitions among the reducers so each reducer processes approximately the same number of records.ConfigParams.PARTITIONING_RESULT| Constructor and Description |
|---|
JoinPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(JoinGroupWritable key, RecordInfo value, int numPartitions) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic int getPartition(JoinGroupWritable key, RecordInfo value, int numPartitions)
getPartition in class org.apache.hadoop.mapreduce.Partitioner<JoinGroupWritable,RecordInfo>Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.