Package io.debezium.connector
Enum SnapshotRecord
- All Implemented Interfaces:
Serializable
,Comparable<SnapshotRecord>
Describes whether the change record comes from snapshot and if it is the last one
- Author:
- Jiri Pechanec
-
Enum Constant Summary
Enum 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
-
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 type with the specified name.static SnapshotRecord[]
values()
Returns an array containing the constants of this enum type, 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 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
-
fromSource
-
toSource
public void toSource(org.apache.kafka.connect.data.Struct source)
-