public class TestDeleteMobTable extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static HBaseClassTestRule | CLASS_RULE | 
| private static byte[] | FAMILY | 
| org.junit.rules.TestName | name | 
| private static byte[] | QF | 
| private static Random | random | 
| private static HBaseTestingUtility | TEST_UTIL | 
| Constructor and Description | 
|---|
| TestDeleteMobTable() | 
| Modifier and Type | Method and Description | 
|---|---|
| private 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.HTableDescriptor | createTableDescriptor(org.apache.hadoop.hbase.TableName tableName,
                     boolean hasMob) | 
| private org.apache.hadoop.hbase.client.Table | createTableWithOneFile(org.apache.hadoop.hbase.HTableDescriptor htd) | 
| 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 | setUpBeforeClass() | 
| static void | tearDownAfterClass() | 
| void | testDeleteMobTable() | 
| void | testDeleteNonMobTable() | 
| void | testMobFamilyDelete() | 
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final byte[] FAMILY
private static final byte[] QF
public org.junit.rules.TestName name
public TestDeleteMobTable()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate static byte[] generateMobValue(int size)
size - the size of the valueprivate org.apache.hadoop.hbase.HTableDescriptor createTableDescriptor(org.apache.hadoop.hbase.TableName tableName, boolean hasMob)
private org.apache.hadoop.hbase.client.Table createTableWithOneFile(org.apache.hadoop.hbase.HTableDescriptor htd) throws IOException
IOExceptionpublic void testDeleteMobTable() throws Exception
Exceptionpublic void testDeleteNonMobTable() throws Exception
Exceptionpublic void testMobFamilyDelete() throws Exception
Exceptionprivate int countMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOExceptionprivate int countArchiveMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOExceptionprivate boolean mobTableDirExist(org.apache.hadoop.hbase.TableName tn) throws IOException
IOExceptionprivate boolean mobColumnFamilyDirExist(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOExceptionprivate boolean mobArchiveExist(org.apache.hadoop.hbase.TableName tn, String familyName, String fileName) throws IOException
IOExceptionprivate String assertHasOneMobRow(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.