public class TestTableSnapshotInputFormat extends TableSnapshotInputFormatTestBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableSnapshotInputFormat.TestTableSnapshotCounters |
static class |
TestTableSnapshotInputFormat.TestTableSnapshotMapper |
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 |
tearDown() |
void |
testGetBestLocations() |
void |
testInitTableSnapshotMapperJobConfig() |
void |
testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
String snapshotName,
Path tmpTableDir) |
protected void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMockedMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits) |
createTableAndSnapshot, setupCluster, tearDownCluster, testRestoreSnapshotDoesNotCreateBackRefLinks, testWithMapReduce, testWithMapReduceAndOfflineHBaseMultiRegion, testWithMapReduceMultiRegion, testWithMapReduceSingleRegion, testWithMockedMapReduceMultiRegion, testWithMockedMapReduceSingleRegion, verifyRowFromMapprotected byte[] getStartRow()
getStartRow in class TableSnapshotInputFormatTestBaseprotected byte[] getEndRow()
getEndRow in class TableSnapshotInputFormatTestBasepublic void testGetBestLocations()
throws IOException
IOExceptionpublic void testInitTableSnapshotMapperJobConfig()
throws Exception
Exceptionpublic void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, String snapshotName, Path tmpTableDir) throws Exception
testRestoreSnapshotDoesNotCreateBackRefLinksInit in class TableSnapshotInputFormatTestBaseExceptionpublic 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