Package io.debezium.connector.cassandra
Enum CassandraConnectorConfig.SnapshotMode
- java.lang.Object
-
- java.lang.Enum<CassandraConnectorConfig.SnapshotMode>
-
- io.debezium.connector.cassandra.CassandraConnectorConfig.SnapshotMode
-
- All Implemented Interfaces:
Serializable,Comparable<CassandraConnectorConfig.SnapshotMode>
- Enclosing class:
- CassandraConnectorConfig
public static enum CassandraConnectorConfig.SnapshotMode extends Enum<CassandraConnectorConfig.SnapshotMode>
The set of predefined SnapshotMode options.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSPerform a snapshot whenever a new table with cdc enabled is detected.INITIALPerform a snapshot for unsnapshotted tables upon initial startup of the cdc agent.NEVERNever perform a snapshot, instead change events are only read from commit logs.
-
Constructor Summary
Constructors Modifier Constructor Description privateSnapshotMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<CassandraConnectorConfig.SnapshotMode>fromText(String text)static CassandraConnectorConfig.SnapshotModevalueOf(String name)Returns the enum constant of this type with the specified name.static CassandraConnectorConfig.SnapshotMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final CassandraConnectorConfig.SnapshotMode ALWAYS
Perform a snapshot whenever a new table with cdc enabled is detected. This is detected by periodically scanning tables in Cassandra.
-
INITIAL
public static final CassandraConnectorConfig.SnapshotMode INITIAL
Perform a snapshot for unsnapshotted tables upon initial startup of the cdc agent.
-
NEVER
public static final CassandraConnectorConfig.SnapshotMode NEVER
Never perform a snapshot, instead change events are only read from commit logs.
-
-
Method Detail
-
values
public static CassandraConnectorConfig.SnapshotMode[] 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 (CassandraConnectorConfig.SnapshotMode c : CassandraConnectorConfig.SnapshotMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CassandraConnectorConfig.SnapshotMode 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
-
fromText
public static Optional<CassandraConnectorConfig.SnapshotMode> fromText(String text)
-
-