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, verifyRowFromMap
protected byte[] getStartRow()
getStartRow
in class TableSnapshotInputFormatTestBase
protected byte[] getEndRow()
getEndRow
in class TableSnapshotInputFormatTestBase
public void testGetBestLocations() throws IOException
IOException
public void testInitTableSnapshotMapperJobConfig() throws Exception
Exception
public void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, String snapshotName, Path tmpTableDir) throws Exception
testRestoreSnapshotDoesNotCreateBackRefLinksInit
in class TableSnapshotInputFormatTestBase
Exception
public void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits) throws Exception
testWithMockedMapReduce
in class TableSnapshotInputFormatTestBase
Exception
protected void testWithMapReduceImpl(HBaseTestingUtility util, TableName tableName, String snapshotName, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
testWithMapReduceImpl
in class TableSnapshotInputFormatTestBase
Exception
public static void doTestWithMapReduce(HBaseTestingUtility util, TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exception