Package io.debezium.connector
Enum SnapshotRecord
- java.lang.Object
-
- java.lang.Enum<SnapshotRecord>
-
- io.debezium.connector.SnapshotRecord
-
- All Implemented Interfaces:
Serializable,Comparable<SnapshotRecord>
public enum SnapshotRecord extends Enum<SnapshotRecord>
Describes whether the change record comes from snapshot and if it is the last one- Author:
- Jiri Pechanec
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FALSERecord is from streaming phase.INCREMENTALRecord is from incremental snapshot window.LASTRecord is from snapshot is the last record generated in snapshot phase.TRUERecord is from snapshot is not the last one.
-
Constructor Summary
Constructors Modifier Constructor Description privateSnapshotRecord()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnapshotRecordfromSource(org.apache.kafka.connect.data.Struct source)voidtoSource(org.apache.kafka.connect.data.Struct source)static SnapshotRecordvalueOf(String name)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 Detail
-
TRUE
public static final SnapshotRecord TRUE
Record is from snapshot is not the last one.
-
LAST
public static final SnapshotRecord LAST
Record is from snapshot is the last record generated in snapshot phase.
-
FALSE
public static final SnapshotRecord FALSE
Record is from streaming phase.
-
INCREMENTAL
public static final SnapshotRecord INCREMENTAL
Record is from incremental snapshot window.
-
-
Method Detail
-
values
public static SnapshotRecord[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SnapshotRecord c : SnapshotRecord.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnapshotRecord valueOf(String name)
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
public static SnapshotRecord fromSource(org.apache.kafka.connect.data.Struct source)
-
toSource
public void toSource(org.apache.kafka.connect.data.Struct source)
-
-