VALUE
- @InterfaceAudience.Public public class SimpleTotalOrderPartitioner<VALUE> extends org.apache.hadoop.mapreduce.Partitioner<ImmutableBytesWritable,VALUE> implements org.apache.hadoop.conf.Configurable
hbase.simpletotalorder.start
and hbase.simpletotalorder.end
. The end
key needs to be exclusive; i.e. one larger than the biggest key in your key space. You may be
surprised at how this class partitions the space; it may not align with preconceptions; e.g. a
start key of zero and an end key of 100 divided in ten will not make regions whose range is 0-10,
10-20, and so on. Make your own partitioner if you need the region spacing to come out a
particular way.Modifier and Type | Field and Description |
---|---|
static String |
END
Deprecated.
since 0.90.0
|
static String |
START
Deprecated.
since 0.90.0
|
Constructor and Description |
---|
SimpleTotalOrderPartitioner() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getPartition(ImmutableBytesWritable key,
VALUE value,
int reduces) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
static void |
setEndKey(org.apache.hadoop.conf.Configuration conf,
byte[] endKey) |
static void |
setStartKey(org.apache.hadoop.conf.Configuration conf,
byte[] startKey) |
@Deprecated public static final String START
@Deprecated public static final String END
public SimpleTotalOrderPartitioner()
public static void setStartKey(org.apache.hadoop.conf.Configuration conf, byte[] startKey)
public static void setEndKey(org.apache.hadoop.conf.Configuration conf, byte[] endKey)
public int getPartition(ImmutableBytesWritable key, VALUE value, int reduces)
getPartition
in class org.apache.hadoop.mapreduce.Partitioner<ImmutableBytesWritable,VALUE>
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.