Package org.apache.hadoop.hbase.client
Class TestSplitOrMergeAtTableLevel
java.lang.Object
org.apache.hadoop.hbase.client.TestSplitOrMergeAtTableLevel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate static byte[]org.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidenableTableMerge(org.apache.hadoop.hbase.TableName tableName) Method to enable merge for the passed table and validate this modification.private voidenableTableSplit(org.apache.hadoop.hbase.TableName tableName) Method to enable split for the passed table and validate this modification.static voidstatic voidvoidvoidvoidvoidprivate voidtryMergeAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) private voidtryMergeAndEnsureItIsSuccess(org.apache.hadoop.hbase.TableName tableName) private voidtrySplitAndEnsureItFails(org.apache.hadoop.hbase.TableName tableName) private voidtrySplitAndEnsureItIsSuccess(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
-