public class TestSyncTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestSyncTable() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
private void |
assertEqualTables(int expectedRows,
org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName) |
static void |
beforeClass() |
private static byte[][] |
generateSplits(int numRows,
int numRegions) |
private void |
hashSourceTable(org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.fs.Path testDir) |
private org.apache.hadoop.mapreduce.Counters |
syncTables(org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName,
org.apache.hadoop.fs.Path testDir) |
void |
testSyncTable() |
private void |
writeTestData(org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
public org.junit.rules.TestName name
public TestSyncTable()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionprivate static byte[][] generateSplits(int numRows, int numRegions)
public void testSyncTable() throws Exception
Exceptionprivate void assertEqualTables(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception
Exceptionprivate org.apache.hadoop.mapreduce.Counters syncTables(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, org.apache.hadoop.fs.Path testDir) throws Exception
Exceptionprivate void hashSourceTable(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.fs.Path testDir) throws Exception, IOException
ExceptionIOExceptionprivate void writeTestData(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception
ExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.