Package org.apache.hadoop.hbase.types
Class TestStruct
java.lang.Object
org.apache.hadoop.hbase.types.TestStruct
This class both tests and demonstrates how to construct compound rowkeys from a POJO. The code
under test is
Struct
. TestStruct.SpecializedPojo1Type1
demonstrates how one might create
their own custom data type extension for an application POJO.-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
A simple object to serialize.private static class
A simple object to serialize.private static class
A custom data type implementation specialized forTestStruct.Pojo1
.private static class
A custom data type implementation specialized forTestStruct.Pojo2
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
Object[][]
org.apache.hadoop.hbase.types.Struct
(package private) static final Comparator<byte[]>
org.apache.hadoop.hbase.types.DataType
-
Constructor Summary
-
Method Summary
-
Field Details
-
CLASS_RULE
-
generic
-
specialized
-
constructorArgs
-
NULL_SAFE_BYTES_COMPARATOR
-
-
Constructor Details
-
TestStruct
public TestStruct()
-
-
Method Details
-
params
-
testOrderPreservation
- Throws:
Exception
-