Enum ExecutionConfigOptions.TypeLengthEnforcer
- java.lang.Object
-
- java.lang.Enum<ExecutionConfigOptions.TypeLengthEnforcer>
-
- org.apache.flink.table.api.config.ExecutionConfigOptions.TypeLengthEnforcer
-
- All Implemented Interfaces:
Serializable,Comparable<ExecutionConfigOptions.TypeLengthEnforcer>,org.apache.flink.configuration.DescribedEnum
- Enclosing class:
- ExecutionConfigOptions
@PublicEvolving public static enum ExecutionConfigOptions.TypeLengthEnforcer extends Enum<ExecutionConfigOptions.TypeLengthEnforcer> implements org.apache.flink.configuration.DescribedEnum
The enforcer to guarantee that length of CHAR/VARCHAR/BINARY/VARBINARY columns is respected when writing data into a sink.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.configuration.description.InlineElementgetDescription()static ExecutionConfigOptions.TypeLengthEnforcervalueOf(String name)Returns the enum constant of this type with the specified name.static ExecutionConfigOptions.TypeLengthEnforcer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final ExecutionConfigOptions.TypeLengthEnforcer IGNORE
-
TRIM_PAD
public static final ExecutionConfigOptions.TypeLengthEnforcer TRIM_PAD
-
ERROR
public static final ExecutionConfigOptions.TypeLengthEnforcer ERROR
-
-
Method Detail
-
values
public static ExecutionConfigOptions.TypeLengthEnforcer[] 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 (ExecutionConfigOptions.TypeLengthEnforcer c : ExecutionConfigOptions.TypeLengthEnforcer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExecutionConfigOptions.TypeLengthEnforcer 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
-
getDescription
@Internal public org.apache.flink.configuration.description.InlineElement getDescription()
- Specified by:
getDescriptionin interfaceorg.apache.flink.configuration.DescribedEnum
-
-