public class TestSerialization extends Object
Modifier and Type | Field and Description |
---|---|
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 |
---|---|
protected HTableDescriptor |
createTableDescriptor(String name)
Create a table of name
name with COLUMNS for
families. |
protected 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 |
testSplitLogTask() |
void |
testTableDescriptor() |
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 void testCreateKeyValueInvalidNegativeLength()
public void testSplitLogTask() throws DeserializationException
DeserializationException
public void testRegionInfo() throws Exception
Exception
protected HTableDescriptor createTableDescriptor(String name)
name
with COLUMNS
for
families.name
- Name to give table.protected HTableDescriptor createTableDescriptor(String name, int versions)
name
with COLUMNS
for
families.name
- Name to give table.versions
- How many versions to allow per column.