public abstract class TableSnapshotInputFormatTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[][] |
FAMILIES |
protected FileSystem |
fs |
protected static int |
NUM_REGION_SERVERS |
protected Path |
rootDir |
protected HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TableSnapshotInputFormatTestBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
createTableAndSnapshot(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
byte[] startRow,
byte[] endRow,
int numRegions) |
protected abstract byte[] |
getEndRow() |
protected abstract byte[] |
getStartRow() |
void |
setupCluster() |
void |
tearDownCluster() |
void |
testRestoreSnapshotDoesNotCreateBackRefLinks() |
abstract void |
testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
String snapshotName,
Path tmpTableDir) |
protected void |
testWithMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceAndOfflineHBaseMultiRegion() |
protected abstract void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceMultiRegion() |
void |
testWithMapReduceSingleRegion() |
protected abstract void |
testWithMockedMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits) |
void |
testWithMockedMapReduceMultiRegion() |
void |
testWithMockedMapReduceSingleRegion() |
protected static void |
verifyRowFromMap(ImmutableBytesWritable key,
Result result) |
protected final HBaseTestingUtility UTIL
protected static final int NUM_REGION_SERVERS
protected static final byte[][] FAMILIES
protected FileSystem fs
protected Path rootDir
protected abstract void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits) throws Exception
Exceptionprotected abstract void testWithMapReduceImpl(HBaseTestingUtility util, TableName tableName, String snapshotName, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exceptionprotected abstract byte[] getStartRow()
protected abstract byte[] getEndRow()
public void testWithMockedMapReduceSingleRegion()
throws Exception
Exceptionpublic void testWithMockedMapReduceMultiRegion()
throws Exception
Exceptionpublic void testWithMapReduceSingleRegion()
throws Exception
Exceptionpublic void testWithMapReduceMultiRegion()
throws Exception
Exceptionpublic void testWithMapReduceAndOfflineHBaseMultiRegion()
throws Exception
Exceptionpublic void testRestoreSnapshotDoesNotCreateBackRefLinks()
throws Exception
Exceptionpublic abstract void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, String snapshotName, Path tmpTableDir) throws Exception
Exceptionprotected void testWithMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exceptionprotected static void verifyRowFromMap(ImmutableBytesWritable key, Result result) throws IOException
IOExceptionprotected static void createTableAndSnapshot(HBaseTestingUtility util, TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, int numRegions) throws Exception
Exception