Package org.apache.hadoop.hbase.types
Class TestStruct
java.lang.Object
org.apache.hadoop.hbase.types.TestStruct
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestStruct
extends Object
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 TypeFieldDescriptionprivate Object[][]private org.apache.hadoop.hbase.types.Struct(package private) static final Comparator<byte[]>private org.apache.hadoop.hbase.types.DataType -
Constructor Summary
ConstructorsConstructorDescriptionTestStruct(org.apache.hadoop.hbase.types.Struct generic, org.apache.hadoop.hbase.types.DataType specialized, Object[][] constructorArgs) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.junit.jupiter.params.provider.Arguments>void
-
Field Details
-
generic
-
specialized
-
constructorArgs
-
NULL_SAFE_BYTES_COMPARATOR
-
-
Constructor Details
-
TestStruct
public TestStruct(org.apache.hadoop.hbase.types.Struct generic, org.apache.hadoop.hbase.types.DataType specialized, Object[][] constructorArgs)
-
-
Method Details
-
parameters
-
testOrderPreservation
- Throws:
Exception
-