Package org.apache.hadoop.hbase.mapred
Class HRegionPartitioner<K2,V2>
java.lang.Object
org.apache.hadoop.hbase.mapred.HRegionPartitioner<K2,V2>
- Type Parameters:
K2
-V2
-
- All Implemented Interfaces:
org.apache.hadoop.mapred.JobConfigurable
,org.apache.hadoop.mapred.Partitioner<ImmutableBytesWritable,
V2>
@Public
public class HRegionPartitioner<K2,V2>
extends Object
implements org.apache.hadoop.mapred.Partitioner<ImmutableBytesWritable,V2>
This is used to partition the output keys into groups of keys. Keys are grouped according to the
regions that currently exist so that each reducer fills a single region so load is distributed.
-
Field Summary
Modifier and TypeFieldDescriptionprivate Connection
private RegionLocator
private static final org.slf4j.Logger
private byte[][]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.apache.hadoop.mapred.JobConf job) int
getPartition
(ImmutableBytesWritable key, V2 value, int numPartitions)
-
Field Details
-
LOG
-
connection
-
locator
-
startKeys
-
-
Constructor Details
-
HRegionPartitioner
public HRegionPartitioner()
-
-
Method Details