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
Exception
public static void afterClass() throws Exception
Exception
private static byte[][] generateSplits(int numRows, int numRegions)
public void testSyncTable() throws Exception
Exception
private void assertEqualTables(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception
Exception
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) throws Exception
Exception
private void hashSourceTable(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.fs.Path testDir) throws Exception, IOException
Exception
IOException
private void writeTestData(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.