Class TestCustomCellTieredCompactionPolicy
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestCustomCellTieredCompactionPolicy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRulestatic final byte[]private static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.HStoreFilecreateFile(org.apache.hadoop.fs.Path file, long minValue, long maxValue, long size, int seqId) private org.apache.hadoop.hbase.regionserver.HStoreFilecreateFile(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.Path file, long minValue, long maxValue, long size, int seqId, long ageInDisk) private org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicyprivate org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicymockAndCreatePolicy(org.apache.hadoop.hbase.client.RegionInfo regionInfo) private org.apache.hadoop.hbase.client.RegionInfoprivate org.apache.hadoop.fs.Pathvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestShouldPerformMajorCompaction(long min, long max, int numFiles, TestCustomCellTieredCompactionPolicy.PolicyValidator<org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicy, ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile>> validation) voidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY
-
-
Constructor Details
-
TestCustomCellTieredCompactionPolicy
public TestCustomCellTieredCompactionPolicy()
-
-
Method Details
-
createFile
private org.apache.hadoop.hbase.regionserver.HStoreFile createFile(org.apache.hadoop.fs.Path file, long minValue, long maxValue, long size, int seqId) throws IOException - Throws:
IOException
-
createFile
private org.apache.hadoop.hbase.regionserver.HStoreFile createFile(org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.fs.Path file, long minValue, long maxValue, long size, int seqId, long ageInDisk) throws IOException - Throws:
IOException
-
mockAndCreatePolicy
private org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicy mockAndCreatePolicy() throws Exception- Throws:
Exception
-
mockAndCreatePolicy
private org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicy mockAndCreatePolicy(org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws Exception - Throws:
Exception
-
mockRegionInfo
-
preparePath
- Throws:
Exception
-
testGetCompactBoundariesForMajorNoOld
- Throws:
Exception
-
testGetCompactBoundariesForMajorAllOld
- Throws:
Exception
-
testGetCompactBoundariesForMajorOneOnEachSide
- Throws:
Exception
-
testGetCompactBoundariesForMajorOneCrossing
- Throws:
Exception
-
testShouldPerformMajorCompaction
private void testShouldPerformMajorCompaction(long min, long max, int numFiles, TestCustomCellTieredCompactionPolicy.PolicyValidator<org.apache.hadoop.hbase.regionserver.compactions.CustomDateTieredCompactionPolicy, ArrayList<org.apache.hadoop.hbase.regionserver.HStoreFile>> validation) throws Exception- Throws:
Exception
-
testShouldPerformMajorCompactionOneFileCrossing
- Throws:
Exception
-
testShouldPerformMajorCompactionOneFileMinMaxLow
- Throws:
Exception
-
testShouldPerformMajorCompactionOneFileMinMaxHigh
- Throws:
Exception
-
testShouldPerformMajorCompactionTwoFilesMinMaxHigh
- Throws:
Exception
-
testSelectMinorCompactionTwoFilesNoOld
- Throws:
Exception
-
testSelectMinorCompactionThreeFilesNoOld
- Throws:
Exception
-
testSelectMinorCompactionThreeFilesAllOld
- Throws:
Exception
-
testSelectMinorCompactionThreeFilesOneOldTwoNew
- Throws:
Exception
-
testSelectMinorCompactionThreeFilesTwoOldOneNew
- Throws:
Exception
-