public class TestSerialization extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected static byte[][] |
COLUMNS |
protected static byte[] |
fam1 |
protected static byte[] |
fam2 |
protected static byte[] |
fam3 |
protected static int |
MAXVERSIONS |
| Constructor and Description |
|---|
TestSerialization() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.hbase.HRegionInfo |
createRandomRegion(String name) |
protected org.apache.hadoop.hbase.HTableDescriptor |
createTableDescriptor(String name)
Create a table of name
name with COLUMNS for
families. |
protected org.apache.hadoop.hbase.HTableDescriptor |
createTableDescriptor(String name,
int versions)
Create a table of name
name with COLUMNS for
families. |
void |
testCompareFilter() |
void |
testCreateKeyValueInvalidNegativeLength() |
void |
testGet() |
void |
testKeyValue() |
void |
testRegionInfo()
Test RegionInfo serialization
|
void |
testRegionInfos() |
void |
testScan() |
void |
testTableDescriptor() |
public static final HBaseClassTestRule CLASS_RULE
protected static final int MAXVERSIONS
protected static final byte[] fam1
protected static final byte[] fam2
protected static final byte[] fam3
protected static final byte[][] COLUMNS
public TestSerialization()
public void testKeyValue() throws Exception
Exceptionpublic void testCreateKeyValueInvalidNegativeLength()
public void testCompareFilter() throws Exception
Exceptionpublic void testTableDescriptor() throws Exception
Exceptionpublic void testRegionInfo() throws Exception
Exceptionpublic void testRegionInfos() throws Exception
Exceptionprivate org.apache.hadoop.hbase.HRegionInfo createRandomRegion(String name)
protected org.apache.hadoop.hbase.HTableDescriptor createTableDescriptor(String name)
name with COLUMNS for
families.name - Name to give table.protected org.apache.hadoop.hbase.HTableDescriptor createTableDescriptor(String name, int versions)
name with COLUMNS for
families.name - Name to give table.versions - How many versions to allow per column.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.