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
Nested ClassesModifier and TypeClassDescriptionprivate static classA simple object to serialize.private static classA simple object to serialize.private static classA custom data type implementation specialized forTestStruct.Pojo1.private static classA custom data type implementation specialized forTestStruct.Pojo2. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleObject[][]org.apache.hadoop.hbase.types.Struct(package private) static final Comparator<byte[]>org.apache.hadoop.hbase.types.DataType -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLASS_RULE
-
generic
-
specialized
-
constructorArgs
-
NULL_SAFE_BYTES_COMPARATOR
-
-
Constructor Details
-
TestStruct
public TestStruct()
-
-
Method Details
-
params
-
testOrderPreservation
- Throws:
Exception
-