public abstract class TableSnapshotInputFormatTestBase extends Object
Modifier and Type | Field and Description |
---|---|
protected static byte[][] |
FAMILIES |
protected FileSystem |
fs |
protected static int |
NUM_REGION_SERVERS |
protected Path |
rootDir |
protected HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TableSnapshotInputFormatTestBase() |
Modifier and Type | Method and Description |
---|---|
protected static void |
createTableAndSnapshot(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
byte[] startRow,
byte[] endRow,
int numRegions) |
protected abstract byte[] |
getEndRow() |
protected abstract byte[] |
getStartRow() |
void |
setupCluster() |
void |
tearDownCluster() |
void |
testRestoreSnapshotDoesNotCreateBackRefLinks() |
abstract void |
testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName,
String snapshotName,
Path tmpTableDir) |
protected void |
testWithMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceAndOfflineHBaseMultiRegion() |
protected abstract void |
testWithMapReduceImpl(HBaseTestingUtility util,
TableName tableName,
String snapshotName,
Path tableDir,
int numRegions,
int expectedNumSplits,
boolean shutdownCluster) |
void |
testWithMapReduceMultiRegion() |
void |
testWithMapReduceSingleRegion() |
protected abstract void |
testWithMockedMapReduce(HBaseTestingUtility util,
String snapshotName,
int numRegions,
int expectedNumSplits) |
void |
testWithMockedMapReduceMultiRegion() |
void |
testWithMockedMapReduceSingleRegion() |
protected static void |
verifyRowFromMap(ImmutableBytesWritable key,
Result result) |
protected final HBaseTestingUtility UTIL
protected static final int NUM_REGION_SERVERS
protected static final byte[][] FAMILIES
protected FileSystem fs
protected Path rootDir
protected abstract void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits) throws Exception
Exception
protected abstract void testWithMapReduceImpl(HBaseTestingUtility util, TableName tableName, String snapshotName, Path tableDir, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exception
protected abstract byte[] getStartRow()
protected abstract byte[] getEndRow()
public void testWithMockedMapReduceSingleRegion() throws Exception
Exception
public void testWithMockedMapReduceMultiRegion() throws Exception
Exception
public void testWithMapReduceSingleRegion() throws Exception
Exception
public void testWithMapReduceMultiRegion() throws Exception
Exception
public void testWithMapReduceAndOfflineHBaseMultiRegion() throws Exception
Exception
public void testRestoreSnapshotDoesNotCreateBackRefLinks() throws Exception
Exception
public abstract void testRestoreSnapshotDoesNotCreateBackRefLinksInit(TableName tableName, String snapshotName, Path tmpTableDir) throws Exception
Exception
protected void testWithMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int expectedNumSplits, boolean shutdownCluster) throws Exception
Exception
protected static void verifyRowFromMap(ImmutableBytesWritable key, Result result) throws IOException
IOException
protected static void createTableAndSnapshot(HBaseTestingUtility util, TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, int numRegions) throws Exception
Exception