public class TestTableDescriptorModificationFromClient extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY_0 |
private static byte[] |
FAMILY_1 |
org.junit.rules.TestName |
name |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestTableDescriptorModificationFromClient() |
Modifier and Type | Method and Description |
---|---|
static void |
afterAllTests() |
static void |
beforeAllTests()
Start up a mini cluster and put a small table of empty regions into it.
|
void |
setup() |
void |
testAddColumn() |
void |
testAddSameColumnFamilyTwice() |
void |
testDeleteColumn() |
void |
testDeleteSameColumnFamilyTwice() |
void |
testModifyColumnFamily() |
void |
testModifyNonExistingColumnFamily() |
void |
testModifyTable() |
private void |
verifyTableDescriptor(org.apache.hadoop.hbase.client.TableDescriptor htd,
org.apache.hadoop.hbase.TableName tableName,
byte[]... families) |
private void |
verifyTableDescriptor(org.apache.hadoop.hbase.TableName tableName,
byte[]... families) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] FAMILY_0
private static final byte[] FAMILY_1
public TestTableDescriptorModificationFromClient()
public static void beforeAllTests() throws Exception
Exception
public void setup()
public static void afterAllTests() throws Exception
Exception
public void testModifyTable() throws IOException
IOException
public void testAddColumn() throws IOException
IOException
public void testAddSameColumnFamilyTwice() throws IOException
IOException
public void testModifyColumnFamily() throws IOException
IOException
public void testModifyNonExistingColumnFamily() throws IOException
IOException
public void testDeleteColumn() throws IOException
IOException
public void testDeleteSameColumnFamilyTwice() throws IOException
IOException
private void verifyTableDescriptor(org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException
IOException
private void verifyTableDescriptor(org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.TableName tableName, byte[]... families)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.