Package com.hazelcast.enterprise.jet.cdc
Enum Class Operation
- All Implemented Interfaces:
Serializable
,Comparable<Operation>
,Constable
Describes the nature of a CDC event, mainly the type of action performed
on a database record: insertion, update and deletion. There are also
some special values: "sync", which has the same effect as an insert, but
originates from the initial database snapshot (as opposed to the
database changelog), and "unspecified", used for a few special CDC
events (like heartbeats).
- Since:
- 5.5
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRecord deletion, sourced from the DB changelog.Record insertion, sourced from the DB changelog.Just likeINSERT
, but coming from the initial DB snapshot (as opposed to the change log).ChangeRecord
doesn't have an operation field, for example heartbeats.Record update, sourced from the DB changelog. -
Method Summary
Modifier and TypeMethodDescriptioncode()
Returns the Debezium operation code as String.static Operation
Parses the string present in a CDC message into the correspondingOperation
enum member.static Operation
Returns the enum constant of this class with the specified name.static Operation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
ChangeRecord
doesn't have an operation field, for example heartbeats. -
SYNC
Just likeINSERT
, but coming from the initial DB snapshot (as opposed to the change log). -
INSERT
Record insertion, sourced from the DB changelog. -
UPDATE
Record update, sourced from the DB changelog. -
DELETE
Record deletion, sourced from the DB changelog.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
code
Returns the Debezium operation code as String. -
get
Parses the string present in a CDC message into the correspondingOperation
enum member.If the argument is
null
, it returnsUNSPECIFIED
.- Throws:
ParsingException
- if the input string doesn't represent an expected value
-