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 n
|
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
Exception
public void testCreateKeyValueInvalidNegativeLength()
public void testCompareFilter() throws Exception
Exception
public void testTableDescriptor() throws Exception
Exception
public void testRegionInfo() throws Exception
Exception
public void testRegionInfos() throws Exception
Exception
private 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.