Package org.apache.hadoop.hbase
Class TestColumnFamilyDescriptorDefaultVersions
java.lang.Object
org.apache.hadoop.hbase.TestColumnFamilyDescriptorDefaultVersions
Verify that the ColumnFamilyDescriptor version is set correctly by default, hbase-site.xml, and
user input
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
org.junit.rules.TestName
private static org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
Start up a mini cluster and put a small table of empty regions into it.void
setup()
void
void
void
void
private void
verifyColumnFamilyDescriptor
(int expected, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor[] hcds, org.apache.hadoop.hbase.TableName tableName, byte[]... families) private void
verifyHColumnDescriptor
(int expected, org.apache.hadoop.hbase.TableName tableName, byte[]... families)
-
Field Details
-
CLASS_RULE
-
name
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
-
Constructor Details
-
TestColumnFamilyDescriptorDefaultVersions
-
-
Method Details
-
beforeAllTests
Start up a mini cluster and put a small table of empty regions into it.- Throws:
Exception
-
setup
-
afterAllTests
- Throws:
Exception
-
testCreateTableWithDefault
- Throws:
IOException
-
testCreateTableWithDefaultFromConf
- Throws:
Exception
-
testCreateTableWithSetVersion
- Throws:
Exception
-
testHColumnDescriptorCachedMaxVersions
- Throws:
Exception
-
verifyHColumnDescriptor
private void verifyHColumnDescriptor(int expected, org.apache.hadoop.hbase.TableName tableName, byte[]... families) throws IOException - Throws:
IOException
-
verifyColumnFamilyDescriptor
private void verifyColumnFamilyDescriptor(int expected, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor[] hcds, org.apache.hadoop.hbase.TableName tableName, byte[]... families)
-