Class TestDeleteMobTable
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDeleteMobTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]org.junit.rules.TestNameprivate static final byte[]private static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringassertHasOneMobRow(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.TableName tn, String familyName) private intcountArchiveMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) private intcountMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) private org.apache.hadoop.hbase.client.TableDescriptorcreateTableDescriptor(org.apache.hadoop.hbase.TableName tableName, boolean hasMob) private org.apache.hadoop.hbase.client.TablecreateTableWithOneFile(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor) private static byte[]generateMobValue(int size) Generate the mob value.private booleanmobArchiveExist(org.apache.hadoop.hbase.TableName tn, String familyName, String fileName) private booleanmobColumnFamilyDirExist(org.apache.hadoop.hbase.TableName tn, String familyName) private booleanmobTableDirExist(org.apache.hadoop.hbase.TableName tn) static voidstatic voidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILY
-
QF
-
name
-
-
Constructor Details
-
TestDeleteMobTable
public TestDeleteMobTable()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
generateMobValue
Generate the mob value. the size of the value- Returns:
- the mob value generated
-
createTableDescriptor
private org.apache.hadoop.hbase.client.TableDescriptor createTableDescriptor(org.apache.hadoop.hbase.TableName tableName, boolean hasMob) -
createTableWithOneFile
private org.apache.hadoop.hbase.client.Table createTableWithOneFile(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor) throws IOException - Throws:
IOException
-
testDeleteMobTable
- Throws:
Exception
-
testDeleteNonMobTable
- Throws:
Exception
-
testMobFamilyDelete
- Throws:
Exception
-
countMobFiles
private int countMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException - Throws:
IOException
-
countArchiveMobFiles
private int countArchiveMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException - Throws:
IOException
-
mobTableDirExist
- Throws:
IOException
-
mobColumnFamilyDirExist
private boolean mobColumnFamilyDirExist(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException - Throws:
IOException
-
mobArchiveExist
private boolean mobArchiveExist(org.apache.hadoop.hbase.TableName tn, String familyName, String fileName) throws IOException - Throws:
IOException
-
assertHasOneMobRow
private String assertHasOneMobRow(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException - Throws:
IOException
-