public class CloneSnapshotFromClientTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
protected byte[] |
emptySnapshot |
protected byte[] |
FAMILY |
org.junit.rules.TestName |
name |
protected int |
snapshot0Rows |
protected int |
snapshot1Rows |
protected byte[] |
snapshotName0 |
protected byte[] |
snapshotName1 |
protected byte[] |
snapshotName2 |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
CloneSnapshotFromClientTestBase() |
Modifier and Type | Method and Description |
---|---|
protected int |
countRows(org.apache.hadoop.hbase.client.Table table) |
protected void |
createTable() |
private void |
createTableAndSnapshots() |
protected int |
getNumReplicas() |
protected String |
getValidMethodName() |
protected int |
numRowsToLoad() |
void |
setup()
Initialize the tests with a table filled with some data and two snapshots (snapshotName0,
snapshotName1) of different states.
|
static void |
setUpBeforeClass() |
protected static void |
setupConfiguration() |
void |
tearDown() |
static void |
tearDownAfterClass() |
protected void |
verifyRowCount(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName,
long expectedRows) |
protected static final HBaseTestingUtility TEST_UTIL
protected final byte[] FAMILY
protected byte[] emptySnapshot
protected byte[] snapshotName0
protected byte[] snapshotName1
protected byte[] snapshotName2
protected org.apache.hadoop.hbase.TableName tableName
protected int snapshot0Rows
protected int snapshot1Rows
protected org.apache.hadoop.hbase.client.Admin admin
public org.junit.rules.TestName name
public CloneSnapshotFromClientTestBase()
protected static void setupConfiguration()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
protected final String getValidMethodName()
public void setup() throws Exception
Exception
protected void createTable() throws IOException, InterruptedException
IOException
InterruptedException
protected int numRowsToLoad()
protected int countRows(org.apache.hadoop.hbase.client.Table table) throws IOException
IOException
private void createTableAndSnapshots() throws Exception
Exception
protected int getNumReplicas()
protected void verifyRowCount(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, long expectedRows) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.