Package org.apache.hadoop.hbase
Class TestSerialization
java.lang.Object
org.apache.hadoop.hbase.TestSerialization
Test HBase Writables serializations
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
protected static final byte[][]
protected static final byte[]
protected static final byte[]
protected static final byte[]
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.HRegionInfo
createRandomRegion
(String name) protected org.apache.hadoop.hbase.HTableDescriptor
createTableDescriptor
(String name) Create a table of namename
withCOLUMNS
for families.protected org.apache.hadoop.hbase.HTableDescriptor
createTableDescriptor
(String name, int versions) Create a table of namename
withCOLUMNS
for families.void
void
void
testGet()
void
void
Test RegionInfo serializationvoid
void
testScan()
void
-
Field Details
-
CLASS_RULE
-
MAXVERSIONS
- See Also:
-
fam1
-
fam2
-
fam3
-
COLUMNS
-
-
Constructor Details
-
TestSerialization
public TestSerialization()
-
-
Method Details
-
testKeyValue
- Throws:
Exception
-
testCreateKeyValueInvalidNegativeLength
-
testCompareFilter
- Throws:
Exception
-
testTableDescriptor
- Throws:
Exception
-
testRegionInfo
Test RegionInfo serialization- Throws:
Exception
-
testRegionInfos
- Throws:
Exception
-
createRandomRegion
-
testGet
- Throws:
Exception
-
testScan
- Throws:
Exception
-
createTableDescriptor
Create a table of namename
withCOLUMNS
for families.- Parameters:
name
- Name to give table.- Returns:
- Column descriptor.
-
createTableDescriptor
Create a table of namename
withCOLUMNS
for families.- Parameters:
name
- Name to give table.versions
- How many versions to allow per column.- Returns:
- Column descriptor.
-