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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]org.junit.rules.TestNameprivate static org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidStart up a mini cluster and put a small table of empty regions into it.voidsetup()voidvoidvoidvoidprivate voidverifyColumnFamilyDescriptor(int expected, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor[] hcds, org.apache.hadoop.hbase.TableName tableName, byte[]... families) private voidverifyHColumnDescriptor(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)
-