Package org.apache.hadoop.hbase.client
Class TestSplitOrMergeAtTableLevel
java.lang.Object
org.apache.hadoop.hbase.client.TestSplitOrMergeAtTableLevel
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private static byte[]
org.junit.rules.TestName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
enableTableMerge
(org.apache.hadoop.hbase.TableName tableName) Method to enable merge for the passed table and validate this modification.private void
enableTableSplit
(org.apache.hadoop.hbase.TableName tableName) Method to enable split for the passed table and validate this modification.static void
static void
void
void
void
void
private void
tryMergeAndEnsureItFails
(org.apache.hadoop.hbase.TableName tableName) private void
tryMergeAndEnsureItIsSuccess
(org.apache.hadoop.hbase.TableName tableName) private void
trySplitAndEnsureItFails
(org.apache.hadoop.hbase.TableName tableName) private void
trySplitAndEnsureItIsSuccess
(org.apache.hadoop.hbase.TableName tableName)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY
-
name
-
admin
-
-
Constructor Details
-
TestSplitOrMergeAtTableLevel
public TestSplitOrMergeAtTableLevel()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testTableSplitSwitch
- Throws:
Exception
-
testTableSplitSwitchForPreSplittedTable
- Throws:
Exception
-
testTableMergeSwitch
- Throws:
Exception
-
testTableMergeSwitchForPreSplittedTable
- Throws:
Exception
-
trySplitAndEnsureItFails
- Throws:
Exception
-
enableTableSplit
Method to enable split for the passed table and validate this modification.- Parameters:
tableName
- name of the table- Throws:
Exception
-
trySplitAndEnsureItIsSuccess
private void trySplitAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
tryMergeAndEnsureItFails
- Throws:
Exception
-
enableTableMerge
Method to enable merge for the passed table and validate this modification.- Parameters:
tableName
- name of the table- Throws:
Exception
-
tryMergeAndEnsureItIsSuccess
private void tryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-