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
Nested ClassesModifier and TypeClassDescription(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final byte[]static final HBaseClassTestRuleprivate static final Stringorg.junit.rules.TestNameFields inherited from class org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
FAMILIES, fs, NUM_REGION_SERVERS, rootDir, UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoTestWithMapReduce(HBaseTestingUtility 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[]voidvoidtestRestoreSnapshotDoesNotCreateBackRefLinksInit(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) voidprotected voidtestWithMapReduceImpl(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) voidvoidprotected voidtestWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) voidprivate voidverifyWithMockedMapReduce(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:
getStartRowin classTableSnapshotInputFormatTestBase
-
getEndRow
- Specified by:
getEndRowin classTableSnapshotInputFormatTestBase
-
testInitTableSnapshotMapperJobConfig
- Throws:
Exception
-
testWithMockedMapReduceMultiRegion
- Overrides:
testWithMockedMapReduceMultiRegionin classTableSnapshotInputFormatTestBase- Throws:
Exception
-
testWithMapReduceMultiRegion
- Overrides:
testWithMapReduceMultiRegionin classTableSnapshotInputFormatTestBase- Throws:
Exception
-
testWithMapReduceAndOfflineHBaseMultiRegion
- Overrides:
testWithMapReduceAndOfflineHBaseMultiRegionin 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:
testRestoreSnapshotDoesNotCreateBackRefLinksInitin classTableSnapshotInputFormatTestBase- Throws:
Exception
-
testWithMockedMapReduce
protected void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) throws Exception - Specified by:
testWithMockedMapReducein 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:
IOExceptionInterruptedException
-
testWithMapReduceImpl
protected void testWithMapReduceImpl(HBaseTestingUtility 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:
testWithMapReduceImplin classTableSnapshotInputFormatTestBase- Throws:
Exception
-
doTestWithMapReduce
public static void doTestWithMapReduce(HBaseTestingUtility 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
-