Class TestDeleteMobTable
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestDeleteMobTable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
org.junit.rules.TestName
private static final byte[]
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
assertHasOneMobRow
(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.TableName tn, String familyName) private int
countArchiveMobFiles
(org.apache.hadoop.hbase.TableName tn, String familyName) private int
countMobFiles
(org.apache.hadoop.hbase.TableName tn, String familyName) private org.apache.hadoop.hbase.client.TableDescriptor
createTableDescriptor
(org.apache.hadoop.hbase.TableName tableName, boolean hasMob) private org.apache.hadoop.hbase.client.Table
createTableWithOneFile
(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor) private static byte[]
generateMobValue
(int size) Generate the mob value.private boolean
mobArchiveExist
(org.apache.hadoop.hbase.TableName tn, String familyName, String fileName) private boolean
mobColumnFamilyDirExist
(org.apache.hadoop.hbase.TableName tn, String familyName) private boolean
mobTableDirExist
(org.apache.hadoop.hbase.TableName tn) static void
static void
void
void
void
-
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
-