Package org.apache.flink.types
Enum RowKind
- All Implemented Interfaces:
Serializable,Comparable<RowKind>,java.lang.constant.Constable
Lists all kinds of changes that a row can describe in a changelog.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeletion operation.Insertion operation.Update operation with new content of the updated row.Update operation with the previous content of the updated row. -
Method Summary
Modifier and TypeMethodDescriptionstatic RowKindfromByteValue(byte value) Creates aRowKindfrom the given byte value.Returns a short string representation of thisRowKind.byteReturns the byte value representation of thisRowKind.static RowKindReturns the enum constant of this type with the specified name.static RowKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSERT
Insertion operation. -
UPDATE_BEFORE
Update operation with the previous content of the updated row.This kind SHOULD occur together with
UPDATE_AFTERfor modelling an update that needs to retract the previous row first. It is useful in cases of a non-idempotent update, i.e., an update of a row that is not uniquely identifiable by a key. -
UPDATE_AFTER
Update operation with new content of the updated row.This kind CAN occur together with
UPDATE_BEFOREfor modelling an update that needs to retract the previous row first. OR it describes an idempotent update, i.e., an update of a row that is uniquely identifiable by a key. -
DELETE
Deletion operation.
-
-
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
-
shortString
Returns a short string representation of thisRowKind.- "+I" represents
INSERT. - "-U" represents
UPDATE_BEFORE. - "+U" represents
UPDATE_AFTER. - "-D" represents
DELETE.
- "+I" represents
-
toByteValue
public byte toByteValue()Returns the byte value representation of thisRowKind. The byte value is used for serialization and deserialization.- "0" represents
INSERT. - "1" represents
UPDATE_BEFORE. - "2" represents
UPDATE_AFTER. - "3" represents
DELETE.
- "0" represents
-
fromByteValue
- See Also:
-