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
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 with
SqlTableLike.MergingStrategy.
- ALL - a shortcut to change the default merging strategy if none provided
- CONSTRAINTS - constraints such as primary and unique keys
- DISTRIBUTION - distribution of the table
- 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
INCLUDING DISTRIBUTION
OVERWRITING OPTIONS
EXCLUDING PARTITIONS
)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlTableLike.FeatureOptionReturns 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 Details
-
ALL
-
CONSTRAINTS
-
DISTRIBUTION
-
GENERATED
-
METADATA
-
OPTIONS
-
PARTITIONS
-
WATERMARKS
-
-
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
-