public class TestTableSnapshotInputFormat extends TableSnapshotInputFormatTestBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableSnapshotInputFormat.TestTableSnapshotReducer |
FAMILIES, fs, NUM_REGION_SERVERS, rootDir, UTIL| Constructor and Description |
|---|
TestTableSnapshotInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doTestWithMapReduce(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
byte[] startRow,
byte[] endRow,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
protected byte[] |
getEndRow() |
protected byte[] |
getStartRow() |
void |
testInitTableSnapshotMapperJobConfig() |
void |
testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
String snapshotName,
Path tmpTableDir) |
void |
testWithMapReduceAndOfflineHBaseMultiRegion() |
protected void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceMultiRegion() |
protected void |
testWithMockedMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits) |
void |
testWithMockedMapReduceMultiRegion() |
createTableAndSnapshot, setupCluster, tearDownCluster, testRestoreSnapshotDoesNotCreateBackRefLinks, testWithMapReduce, testWithMapReduceSingleRegion, testWithMockedMapReduceSingleRegion, verifyRowFromMapprotected byte[] getStartRow()
getStartRow in class TableSnapshotInputFormatTestBaseprotected byte[] getEndRow()
getEndRow in class TableSnapshotInputFormatTestBasepublic void testInitTableSnapshotMapperJobConfig()
throws Exception
Exceptionpublic void testWithMockedMapReduceMultiRegion()
throws Exception
testWithMockedMapReduceMultiRegion in class TableSnapshotInputFormatTestBaseExceptionpublic void testWithMapReduceMultiRegion()
throws Exception
testWithMapReduceMultiRegion in class TableSnapshotInputFormatTestBaseExceptionpublic void testWithMapReduceAndOfflineHBaseMultiRegion()
throws Exception
testWithMapReduceAndOfflineHBaseMultiRegion in class TableSnapshotInputFormatTestBaseExceptionpublic void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, String snapshotName, Path tmpTableDir) throws Exception
testRestoreSnapshotDoesNotCreateBackRefLinksInit in class TableSnapshotInputFormatTestBaseExceptionprotected void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits) throws Exception
testWithMockedMapReduce in class TableSnapshotInputFormatTestBaseExceptionprotected void testWithMapReduceImpl(HBaseTestingUtility util, TableName tableName, String snapshotName, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
testWithMapReduceImpl in class TableSnapshotInputFormatTestBaseExceptionpublic static void doTestWithMapReduce(HBaseTestingUtility util, TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exception