@InterfaceAudience.Private class HMerge extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
HMerge.Merger |
private static class |
HMerge.OnlineMerger
Instantiated to compact a normal user table
|
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
LOG |
(package private) static Random |
rand |
| Modifier | Constructor and Description |
|---|---|
private |
HMerge() |
| Modifier and Type | Method and Description |
|---|---|
static void |
merge(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName)
Scans the table and merges two adjacent regions if they are small.
|
static void |
merge(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
boolean testMasterRunning)
Scans the table and merges two adjacent regions if they are small.
|
private static final org.apache.commons.logging.Log LOG
static final Random rand
public static void merge(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName)
throws IOException
conf - - configuration object for HBasefs - - FileSystem where regions residetableName - - Table to be compactedIOExceptionpublic static void merge(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tableName,
boolean testMasterRunning)
throws IOException
conf - - configuration object for HBasefs - - FileSystem where regions residetableName - - Table to be compactedtestMasterRunning - True if we are to verify master is down before
running mergeIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.