Package org.apache.hadoop.hbase
Class TestHColumnDescriptorDefaultVersions
java.lang.Object
org.apache.hadoop.hbase.TestHColumnDescriptorDefaultVersions
Verify that the HColumnDescriptor 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 HBaseTestingUtility
-
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
verifyHColumnDescriptor
(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
-
TestHColumnDescriptorDefaultVersions
public TestHColumnDescriptorDefaultVersions()
-
-
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
-
verifyHColumnDescriptor
private void verifyHColumnDescriptor(int expected, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor[] hcds, org.apache.hadoop.hbase.TableName tableName, byte[]... families)
-