public class JoinPartitioner extends java.lang.Object implements org.apache.hadoop.mapred.Partitioner<JoinGroupWritable,RecordInfo>
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 |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf conf) |
int |
getPartition(JoinGroupWritable key, RecordInfo value, int numPartitions) |
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure in interface org.apache.hadoop.mapred.JobConfigurablepublic int getPartition(JoinGroupWritable key, RecordInfo value, int numPartitions)
getPartition in interface org.apache.hadoop.mapred.Partitioner<JoinGroupWritable,RecordInfo>Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.