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,
java.lang.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,
java.lang.String snapshotName,
Path tmpTableDir) |
void |
testWithMapReduceAndOfflineHBaseMultiRegion() |
protected void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
java.lang.String snapshotName,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceMultiRegion() |
protected void |
testWithMockedMapReduce(HBaseTestingUtility util,
java.lang.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 java.lang.Exception
java.lang.Exceptionpublic void testWithMockedMapReduceMultiRegion()
throws java.lang.Exception
testWithMockedMapReduceMultiRegion in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic void testWithMapReduceMultiRegion()
throws java.lang.Exception
testWithMapReduceMultiRegion in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic void testWithMapReduceAndOfflineHBaseMultiRegion()
throws java.lang.Exception
testWithMapReduceAndOfflineHBaseMultiRegion in class TableSnapshotInputFormatTestBasejava.lang.Exceptionpublic void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, java.lang.String snapshotName, Path tmpTableDir) throws java.lang.Exception
testRestoreSnapshotDoesNotCreateBackRefLinksInit in class TableSnapshotInputFormatTestBasejava.lang.Exceptionprotected void testWithMockedMapReduce(HBaseTestingUtility util, java.lang.String snapshotName, int numRegions, int expectedNumSplits) throws java.lang.Exception
testWithMockedMapReduce in class TableSnapshotInputFormatTestBasejava.lang.Exceptionprotected void testWithMapReduceImpl(HBaseTestingUtility util, TableName tableName, java.lang.String snapshotName, Path tableDir, int numRegions, 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 expectedNumSplits, boolean shutdownCluster) throws java.lang.Exception
java.lang.Exception