Enum CreateDisposition
- All Implemented Interfaces:
Serializable,Comparable<CreateDisposition>,java.lang.constant.Constable
Whether the sink may create destination tables that do not exist.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCreate the destination table when it does not exist, deriving the table schema from the record's protobuf descriptor.Never create destination tables; writing to a missing table fails. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the hyphenated lower-case spelling this constant takes in asink.create-dispositionDDL option, for examplecreate-if-needed.static CreateDispositionReturns the enum constant of this type with the specified name.static CreateDisposition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATE_IF_NEEDED
Create the destination table when it does not exist, deriving the table schema from the record's protobuf descriptor. -
CREATE_NEVER
Never create destination tables; writing to a missing table fails.
-
-
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
-
toString
Returns the hyphenated lower-case spelling this constant takes in asink.create-dispositionDDL option, for examplecreate-if-needed.Flink resolves an enum-valued
ConfigOptionby matching this string case-insensitively and normalizing nothing else. UseEnum.name()where a message means the Java constant.- Overrides:
toStringin classEnum<CreateDisposition>
-