public class CloneSnapshotFromClientTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected 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 TableName |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
CloneSnapshotFromClientTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countRows(Table table) |
protected void |
createTable() |
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,
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 int snapshot0Rows
protected int snapshot1Rows
public org.junit.rules.TestName name
public CloneSnapshotFromClientTestBase()
protected static void setupConfiguration()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprotected final String getValidMethodName()
public void setup() throws Exception
Exceptionprotected void createTable() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected int numRowsToLoad()
protected int countRows(Table table) throws IOException
IOExceptionprotected int getNumReplicas()
protected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.