public class TestCopyTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY_A |
private static String |
FAMILY_A_STRING |
private static byte[] |
FAMILY_B |
private static String |
FAMILY_B_STRING |
org.junit.rules.TestName |
name |
private static byte[] |
QUALIFIER |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestCopyTable() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
private org.apache.hadoop.hbase.client.Table |
createTable(org.apache.hadoop.hbase.TableName tableName,
byte[] family,
boolean isMob) |
private void |
doCopyTableTest(boolean bulkload) |
private void |
doCopyTableTestWithMob(boolean bulkload) |
private void |
loadData(org.apache.hadoop.hbase.client.Table t,
byte[] family,
byte[] column) |
private boolean |
runCopy(String[] args) |
void |
testCopyTable()
Simple end-to-end test
|
private void |
testCopyTableBySnapshot(String tablePrefix,
boolean bulkLoad,
boolean isMob) |
void |
testCopyTableWithBulkload()
Simple end-to-end test with bulkload.
|
void |
testCopyTableWithBulkloadWithMob()
Simple end-to-end test with bulkload on table with MOB.
|
void |
testCopyTableWithMob()
Simple end-to-end test on table with MOB
|
void |
testLoadingSnapshotAndBulkLoadToMobTable() |
void |
testLoadingSnapshotAndBulkLoadToTable() |
void |
testLoadingSnapshotToRemoteCluster() |
void |
testLoadingSnapshotToTable() |
void |
testLoadingSnapshotWithoutDestTable() |
void |
testLoadingSnapshotWithoutSnapshotName() |
void |
testMainMethod()
Test main method of CopyTable.
|
void |
testRenameFamily()
Test copy of table from sourceTable to targetTable all rows from family a
|
void |
testStartStopRow() |
void |
tsetLoadingSnapshotToMobTable() |
private void |
verifyRows(org.apache.hadoop.hbase.client.Table t,
byte[] family,
byte[] column) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] ROW1
private static final byte[] ROW2
private static final String FAMILY_A_STRING
private static final String FAMILY_B_STRING
private static final byte[] FAMILY_A
private static final byte[] FAMILY_B
private static final byte[] QUALIFIER
public org.junit.rules.TestName name
public TestCopyTable()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionprivate void doCopyTableTest(boolean bulkload) throws Exception
Exceptionprivate void doCopyTableTestWithMob(boolean bulkload) throws Exception
Exceptionpublic void testCopyTable() throws Exception
Exceptionpublic void testCopyTableWithBulkload() throws Exception
Exceptionpublic void testCopyTableWithMob() throws Exception
Exceptionpublic void testCopyTableWithBulkloadWithMob() throws Exception
Exceptionpublic void testStartStopRow() throws Exception
Exceptionpublic void testRenameFamily() throws Exception
Exceptionpublic void testMainMethod() throws Exception
Exceptionprivate void loadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException
IOExceptionprivate void verifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.client.Table createTable(org.apache.hadoop.hbase.TableName tableName, byte[] family, boolean isMob) throws IOException
IOExceptionprivate void testCopyTableBySnapshot(String tablePrefix, boolean bulkLoad, boolean isMob) throws Exception
Exceptionpublic void testLoadingSnapshotToTable() throws Exception
Exceptionpublic void tsetLoadingSnapshotToMobTable() throws Exception
Exceptionpublic void testLoadingSnapshotAndBulkLoadToTable() throws Exception
Exceptionpublic void testLoadingSnapshotAndBulkLoadToMobTable() throws Exception
Exceptionpublic void testLoadingSnapshotToRemoteCluster() throws Exception
Exceptionpublic void testLoadingSnapshotWithoutSnapshotName() throws Exception
Exceptionpublic void testLoadingSnapshotWithoutDestTable() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.