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,
boolean ignoreTimestamps) |
private void |
assertTargetDoDeletesFalse(int expectedRows,
org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName) |
private void |
assertTargetDoPutsFalse(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,
String... options) |
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,
String... options) |
void |
testSyncTable() |
void |
testSyncTableDoDeletesFalse() |
void |
testSyncTableDoPutsFalse() |
void |
testSyncTableIgnoreTimestampsTrue() |
private void |
writeTestData(org.apache.hadoop.hbase.TableName sourceTableName,
org.apache.hadoop.hbase.TableName targetTableName,
long... timestamps) |
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
Exceptionpublic void testSyncTableDoDeletesFalse() throws Exception
Exceptionpublic void testSyncTableDoPutsFalse() throws Exception
Exceptionpublic void testSyncTableIgnoreTimestampsTrue() throws Exception
Exceptionprivate void assertEqualTables(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, boolean ignoreTimestamps) throws Exception
Exceptionprivate void assertTargetDoDeletesFalse(int expectedRows, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws Exception
Exceptionprivate void assertTargetDoPutsFalse(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, String... options) throws Exception
Exceptionprivate void hashSourceTable(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.fs.Path testDir, String... options) throws Exception
Exceptionprivate void writeTestData(org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName, long... timestamps) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.