Package org.apache.flink.sql.parser.ddl
Enum SqlTableLike.FeatureOption
- java.lang.Object
-
- java.lang.Enum<SqlTableLike.FeatureOption>
-
- org.apache.flink.sql.parser.ddl.SqlTableLike.FeatureOption
-
- All Implemented Interfaces:
Serializable,Comparable<SqlTableLike.FeatureOption>
- Enclosing class:
- SqlTableLike
public static enum SqlTableLike.FeatureOption extends Enum<SqlTableLike.FeatureOption>
A feature of a table descriptor that will be merged into the new table. The way how a certain feature will be merged into the final descriptor is controlled withSqlTableLike.MergingStrategy.- ALL - a shortcut to change the default merging strategy if none provided
- CONSTRAINTS - constraints such as primary and unique keys
- GENERATED - computed columns
- METADATA - metadata columns
- WATERMARKS - watermark declarations
- PARTITIONS - partition of the tables
- OPTIONS - connector options that describe connector and format properties
Example:
LIKE `sourceTable` ( INCLUDING ALL OVERWRITING OPTIONS EXCLUDING PARTITIONS )is equivalent to:
LIKE `sourceTable` ( INCLUDING GENERATED INCLUDING CONSTRAINTS OVERWRITING OPTIONS EXCLUDING PARTITIONS )
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLCONSTRAINTSGENERATEDMETADATAOPTIONSPARTITIONSWATERMARKS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlTableLike.FeatureOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static SqlTableLike.FeatureOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final SqlTableLike.FeatureOption ALL
-
CONSTRAINTS
public static final SqlTableLike.FeatureOption CONSTRAINTS
-
GENERATED
public static final SqlTableLike.FeatureOption GENERATED
-
METADATA
public static final SqlTableLike.FeatureOption METADATA
-
OPTIONS
public static final SqlTableLike.FeatureOption OPTIONS
-
PARTITIONS
public static final SqlTableLike.FeatureOption PARTITIONS
-
WATERMARKS
public static final SqlTableLike.FeatureOption WATERMARKS
-
-
Method Detail
-
values
public static SqlTableLike.FeatureOption[] 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 (SqlTableLike.FeatureOption c : SqlTableLike.FeatureOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlTableLike.FeatureOption 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
-
-