Package io.debezium.connector
Enum Class SnapshotRecord
- All Implemented Interfaces:
Serializable
,Comparable<SnapshotRecord>
,Constable
Describes whether the change record comes from snapshot and if it is the last one
- Author:
- Jiri Pechanec
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRecord is from streaming phase.Record is from snapshot is the first record generated in snapshot phase.Record is from snapshot and the first record generated from the table, but not in the entire snapshot.Record is from incremental snapshot window.Record is from snapshot is the last record generated in snapshot phase.Record is from snapshot and the last record generated from the table, but not in the entire snapshot.Record is from snapshot is not the last one. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotRecord
fromSource
(org.apache.kafka.connect.data.Struct source) void
toSource
(org.apache.kafka.connect.data.Struct source) static SnapshotRecord
Returns the enum constant of this class with the specified name.static SnapshotRecord[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUE
Record is from snapshot is not the last one. -
FIRST
Record is from snapshot is the first record generated in snapshot phase. -
FIRST_IN_DATA_COLLECTION
Record is from snapshot and the first record generated from the table, but not in the entire snapshot. -
LAST_IN_DATA_COLLECTION
Record is from snapshot and the last record generated from the table, but not in the entire snapshot. -
LAST
Record is from snapshot is the last record generated in snapshot phase. -
FALSE
Record is from streaming phase. -
INCREMENTAL
Record is from incremental snapshot window.
-
-
Constructor Details
-
SnapshotRecord
private SnapshotRecord()
-
-
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
-
fromSource
-
toSource
public void toSource(org.apache.kafka.connect.data.Struct source)
-