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 Details

  • Constructor Details

  • Method Details

    • configure

      public void configure(org.apache.hadoop.mapred.JobConf job)
      Specified by:
      configure in interface org.apache.hadoop.mapred.JobConfigurable
    • getPartition

      public int getPartition(ImmutableBytesWritable key, V2 value, int numPartitions)
      Specified by:
      getPartition in interface org.apache.hadoop.mapred.Partitioner<K2,V2>