Package org.apache.hadoop.hbase.types
Class Union4<A,B,C,D>
java.lang.Object
org.apache.hadoop.hbase.types.Union2<A,B>
org.apache.hadoop.hbase.types.Union3<A,B,C>
org.apache.hadoop.hbase.types.Union4<A,B,C,D>
The
Union
family of DataType
s encode one of a fixed collection of Objects. They
provide convenience methods which handle type casting on your behalf.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRead an instance of the fourth type parameter from buffersrc
.getOrder()
Retrieve the sortOrder
imposed by this data type, or null when natural ordering is not preserved.boolean
Indicates whether this instance supports encoding null values.boolean
Indicates whether this instance writes encodedbyte[]
's which preserve the natural sort order of the unencoded value.boolean
Indicates whether this instance is able to skip over it's encoded value.Methods inherited from class org.apache.hadoop.hbase.types.Union2
decodeA, decodeB, encodedClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.types.DataType
decode, encode, encodedLength, skip
-
Field Details
-
typeD
-
-
Constructor Details
-
Union4
Create an instance ofUnion4
over the set of specified types.
-
-
Method Details
-
isOrderPreserving
Description copied from interface:DataType
Indicates whether this instance writes encodedbyte[]
's which preserve the natural sort order of the unencoded value.- Specified by:
isOrderPreserving
in interfaceDataType<A>
- Overrides:
isOrderPreserving
in classUnion3<A,
B, C> - Returns:
true
when natural order is preserved,false
otherwise.
-
getOrder
Description copied from interface:DataType
Retrieve the sortOrder
imposed by this data type, or null when natural ordering is not preserved. Value is either ascending or descending. Default is assumed to beOrder.ASCENDING
. -
isNullable
Description copied from interface:DataType
Indicates whether this instance supports encoding null values. This depends on the implementation details of the encoding format. AllDataType
s that support null should treat null as comparing less than any non-null value for default sort ordering purposes.- Specified by:
isNullable
in interfaceDataType<A>
- Overrides:
isNullable
in classUnion3<A,
B, C> - Returns:
true
when null is supported,false
otherwise.
-
isSkippable
Description copied from interface:DataType
Indicates whether this instance is able to skip over it's encoded value.DataType
s that are not skippable can only be used as the right-most field of aStruct
.- Specified by:
isSkippable
in interfaceDataType<A>
- Overrides:
isSkippable
in classUnion3<A,
B, C>
-
decodeD
Read an instance of the fourth type parameter from buffersrc
.
-