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