Enum Class CatalogSchemaFactory
java.lang.Object
java.lang.Enum<CatalogSchemaFactory>
cn.sliew.flinkful.sql.catalog.sakura.factory.CatalogSchemaFactory
- All Implemented Interfaces:
Serializable,Comparable<CatalogSchemaFactory>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidaddConstraint(org.apache.flink.table.api.Schema.Builder schemaBuilder, UniqueConstraintDTO constraint) static voidaddWatermark(org.apache.flink.table.api.Schema.Builder schemaBuilder, WatermarkDTO watermark) static org.apache.flink.table.api.Schemastatic ColumnDTOtoColumn(org.apache.flink.table.api.Schema.UnresolvedColumn column) static ColumnDTOtoColumn(org.apache.flink.table.catalog.Column column) static UniqueConstraintDTOtoConstraint(org.apache.flink.table.api.Schema.UnresolvedPrimaryKey constraint) static UniqueConstraintDTOtoConstraint(org.apache.flink.table.catalog.UniqueConstraint constraint) static SchemaDTOtoSchema(org.apache.flink.table.api.Schema schema) static SchemaDTOtoSchema(org.apache.flink.table.catalog.ResolvedSchema schema) static WatermarkDTOtoWatermark(org.apache.flink.table.api.Schema.UnresolvedWatermarkSpec watermark) static WatermarkDTOtoWatermark(org.apache.flink.table.catalog.WatermarkSpec watermark) static CatalogSchemaFactoryReturns the enum constant of this class with the specified name.static CatalogSchemaFactory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toSchema
-
toSchema
-
toCatalog
-
toColumn
-
toColumn
-
addColumn
public static void addColumn(org.apache.flink.table.api.Schema.Builder schemaBuilder, ColumnDTO column) -
toWatermark
-
toWatermark
public static WatermarkDTO toWatermark(org.apache.flink.table.api.Schema.UnresolvedWatermarkSpec watermark) -
addWatermark
public static void addWatermark(org.apache.flink.table.api.Schema.Builder schemaBuilder, WatermarkDTO watermark) -
toConstraint
public static UniqueConstraintDTO toConstraint(org.apache.flink.table.catalog.UniqueConstraint constraint) -
toConstraint
public static UniqueConstraintDTO toConstraint(org.apache.flink.table.api.Schema.UnresolvedPrimaryKey constraint) -
addConstraint
public static void addConstraint(org.apache.flink.table.api.Schema.Builder schemaBuilder, UniqueConstraintDTO constraint)
-