Enum TrailingBytes
- All Implemented Interfaces:
Serializable,Comparable<TrailingBytes>,java.lang.constant.Constable
What a fixed-width decoder does with a cell or row key longer than the declared type's layout.
A BOOLEAN cell is outside this choice: HBase's Bytes.toBoolean rejects any
array that is not exactly one byte, and the decoder mirrors that under both values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()static TrailingBytesReturns the enum constant of this type with the specified name.static TrailingBytes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Decode the declared width and ignore the rest, which is what HBase'sBytesdecoders do. This reads the leading component of a composite key, and it is what makes an equality predicate on a fixed-width row key match every key that decodes to the compared value. -
REJECT
Fail the read on any length but the declared type's exact width, so a value that was not written under this connector's encoding cannot silently decode as its prefix.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<TrailingBytes>
-