public class TestTableSnapshotInputFormat extends TableSnapshotInputFormatTestBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableSnapshotInputFormat.TestTableSnapshotCounters |
static class |
TestTableSnapshotInputFormat.TestTableSnapshotMapper |
static class |
TestTableSnapshotInputFormat.TestTableSnapshotReducer |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
TestName |
name |
FAMILIES, fs, NUM_REGION_SERVERS, rootDir, UTIL| Constructor and Description |
|---|
TestTableSnapshotInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doTestWithMapReduce(HBaseTestingUtility util,
TableName tableName,
java.lang.String snapshotName,
byte[] startRow,
byte[] endRow,
Path tableDir,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean shutdownCluster) |
protected byte[] |
getEndRow() |
protected byte[] |
getStartRow() |
void |
tearDown() |
void |
testGetBestLocations() |
void |
testInitTableSnapshotMapperJobConfig() |
void |
testNoDuplicateResultsWhenSplitting() |
void |
testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
java.lang.String snapshotName,
Path tmpTableDir) |
protected void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
java.lang.String snapshotName,
Path tableDir,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMockedMapReduce(HBaseTestingUtility util,
java.lang.String snapshotName,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean setLocalityEnabledTo) |
void |
testWithMockedMapReduceWithNoStartRowStopRow() |
void |
testWithMockedMapReduceWithSplitsPerRegion() |
createTableAndSnapshot, setupCluster, tearDownCluster, testRestoreSnapshotDoesNotCreateBackRefLinks, testWithMapReduce, testWithMapReduceAndOfflineHBaseMultiRegion, testWithMapReduceMultipleMappersPerRegion, testWithMapReduceMultiRegion, testWithMapReduceSingleRegion, testWithMockedMapReduceMultiRegion, testWithMockedMapReduceSingleRegion, verifyRowFromMapprotected byte[] getStartRow()
getStartRow in class TableSnapshotInputFormatTestBaseprotected byte[] getEndRow()
getEndRow in class TableSnapshotInputFormatTestBasepublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetBestLocations()
throws java.io.IOException
java.io.IOExceptionpublic void testInitTableSnapshotMapperJobConfig()
throws java.lang.Exception
java.lang.Exceptionpublic void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
java.lang.String snapshotName,
Path tmpTableDir)
throws java.lang.Exception
testRestoreSnapshotDoesNotCreateBackRefLinksInit in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic void testWithMockedMapReduce(HBaseTestingUtility util,
java.lang.String snapshotName,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean setLocalityEnabledTo)
throws java.lang.Exception
testWithMockedMapReduce in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic void testWithMockedMapReduceWithSplitsPerRegion()
throws java.lang.Exception
java.lang.Exceptionpublic void testWithMockedMapReduceWithNoStartRowStopRow()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoDuplicateResultsWhenSplitting()
throws java.lang.Exception
java.lang.Exceptionprotected void testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
java.lang.String snapshotName,
Path tableDir,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean shutdownCluster)
throws java.lang.Exception
testWithMapReduceImpl in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic static void doTestWithMapReduce(HBaseTestingUtility util,
TableName tableName,
java.lang.String snapshotName,
byte[] startRow,
byte[] endRow,
Path tableDir,
int numRegions,
int numSplitsPerRegion,
int expectedNumSplits,
boolean shutdownCluster)
throws java.lang.Exception
java.lang.Exception