Enum SchemaAdjustmentMode
- java.lang.Object
-
- java.lang.Enum<SchemaAdjustmentMode>
-
- org.apache.flink.cdc.connectors.vitess.config.SchemaAdjustmentMode
-
- All Implemented Interfaces:
Serializable,Comparable<SchemaAdjustmentMode>
public enum SchemaAdjustmentMode extends Enum<SchemaAdjustmentMode>
Specifies how schema names should be adjusted for compatibility with the message converter used by the connector.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaAdjustmentModeavro()static SchemaAdjustmentModenone()static SchemaAdjustmentModevalueOf(String name)Returns the enum constant of this type with the specified name.static SchemaAdjustmentMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVRO
public static final SchemaAdjustmentMode AVRO
Replaces the characters that cannot be used in the Avro type name with underscore.
-
NONE
public static final SchemaAdjustmentMode NONE
Does not apply any adjustment.
-
-
Method Detail
-
values
public static SchemaAdjustmentMode[] 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 (SchemaAdjustmentMode c : SchemaAdjustmentMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaAdjustmentMode 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
-
avro
public static SchemaAdjustmentMode avro()
-
none
public static SchemaAdjustmentMode none()
-
-