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 HBaseTestingUtil |
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.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 |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testDeleteMobTable() |
void |
testDeleteNonMobTable() |
void |
testMobFamilyDelete() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtil 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
Exception
public static void tearDownAfterClass() throws Exception
Exception
private static byte[] generateMobValue(int size)
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) throws IOException
IOException
public void testDeleteMobTable() throws Exception
Exception
public void testDeleteNonMobTable() throws Exception
Exception
public void testMobFamilyDelete() throws Exception
Exception
private int countMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOException
private int countArchiveMobFiles(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOException
private boolean mobTableDirExist(org.apache.hadoop.hbase.TableName tn) throws IOException
IOException
private boolean mobColumnFamilyDirExist(org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOException
private boolean mobArchiveExist(org.apache.hadoop.hbase.TableName tn, String familyName, String fileName) throws IOException
IOException
private String assertHasOneMobRow(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.TableName tn, String familyName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.