Package org.apache.hadoop.hbase.mapred
Class TestTableSnapshotInputFormat
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
org.apache.hadoop.hbase.mapred.TestTableSnapshotInputFormat
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
private static final byte[]
static final HBaseClassTestRule
private static final String
org.junit.rules.TestName
Fields inherited from class org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
FAMILIES, fs, NUM_REGION_SERVERS, rootDir, UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doTestWithMapReduce
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) protected byte[]
protected byte[]
void
void
testRestoreSnapshotDoesNotCreateBackRefLinksInit
(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) void
protected void
testWithMapReduceImpl
(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) void
void
protected void
testWithMockedMapReduce
(HBaseTestingUtil util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) void
private void
verifyWithMockedMapReduce
(org.apache.hadoop.mapred.JobConf job, int numRegions, int expectedNumSplits, byte[] startRow, byte[] stopRow) Methods inherited from class org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
createTableAndSnapshot, setupCluster, tearDownCluster, testRestoreSnapshotDoesNotCreateBackRefLinks, testWithMapReduce, testWithMapReduceSingleRegion, testWithMockedMapReduceSingleRegion, verifyRowFromMap
-
Field Details
-
CLASS_RULE
-
aaa
-
after_zzz
-
COLUMNS
-
name
-
-
Constructor Details
-
TestTableSnapshotInputFormat
public TestTableSnapshotInputFormat()
-
-
Method Details
-
getStartRow
- Specified by:
getStartRow
in classTableSnapshotInputFormatTestBase
-
getEndRow
- Specified by:
getEndRow
in classTableSnapshotInputFormatTestBase
-
testInitTableSnapshotMapperJobConfig
- Throws:
Exception
-
testWithMockedMapReduceMultiRegion
- Overrides:
testWithMockedMapReduceMultiRegion
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testWithMapReduceMultiRegion
- Overrides:
testWithMapReduceMultiRegion
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testWithMapReduceAndOfflineHBaseMultiRegion
- Overrides:
testWithMapReduceAndOfflineHBaseMultiRegion
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testRestoreSnapshotDoesNotCreateBackRefLinksInit
public void testRestoreSnapshotDoesNotCreateBackRefLinksInit(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) throws Exception - Specified by:
testRestoreSnapshotDoesNotCreateBackRefLinksInit
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testWithMockedMapReduce
protected void testWithMockedMapReduce(HBaseTestingUtil util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) throws Exception - Specified by:
testWithMockedMapReduce
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
verifyWithMockedMapReduce
private void verifyWithMockedMapReduce(org.apache.hadoop.mapred.JobConf job, int numRegions, int expectedNumSplits, byte[] startRow, byte[] stopRow) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testWithMapReduceImpl
protected void testWithMapReduceImpl(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) throws Exception - Specified by:
testWithMapReduceImpl
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
doTestWithMapReduce
public static void doTestWithMapReduce(HBaseTestingUtil util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) throws Exception - Throws:
Exception
-
testWithMapReduceMultipleMappersPerRegion
- Throws:
Exception
-