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 n
|
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
Exception
public static void afterClass() throws Exception
Exception
private void doCopyTableTest(boolean bulkload) throws Exception
Exception
private void doCopyTableTestWithMob(boolean bulkload) throws Exception
Exception
public void testCopyTable() throws Exception
Exception
public void testCopyTableWithBulkload() throws Exception
Exception
public void testCopyTableWithMob() throws Exception
Exception
public void testCopyTableWithBulkloadWithMob() throws Exception
Exception
public void testStartStopRow() throws Exception
Exception
public void testRenameFamily() throws Exception
Exception
public void testMainMethod() throws Exception
Exception
private void loadData(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException
IOException
private void verifyRows(org.apache.hadoop.hbase.client.Table t, byte[] family, byte[] column) throws IOException
IOException
private org.apache.hadoop.hbase.client.Table createTable(org.apache.hadoop.hbase.TableName tableName, byte[] family, boolean isMob) throws IOException
IOException
private void testCopyTableBySnapshot(String tablePrefix, boolean bulkLoad, boolean isMob) throws Exception
Exception
public void testLoadingSnapshotToTable() throws Exception
Exception
public void tsetLoadingSnapshotToMobTable() throws Exception
Exception
public void testLoadingSnapshotAndBulkLoadToTable() throws Exception
Exception
public void testLoadingSnapshotAndBulkLoadToMobTable() throws Exception
Exception
public void testLoadingSnapshotToRemoteCluster() throws Exception
Exception
public void testLoadingSnapshotWithoutSnapshotName() throws Exception
Exception
public void testLoadingSnapshotWithoutDestTable() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.