Package cn.sliew.sakura.catalog.factory
Enum CatalogSchemaFactory
- java.lang.Object
-
- java.lang.Enum<CatalogSchemaFactory>
-
- cn.sliew.sakura.catalog.factory.CatalogSchemaFactory
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CatalogSchemaFactory>
public enum CatalogSchemaFactory extends java.lang.Enum<CatalogSchemaFactory>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddColumn(org.apache.flink.table.api.Schema.Builder schemaBuilder, ColumnDTO column)static 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.SchematoCatalog(SchemaDTO schemaDTO)static 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 CatalogSchemaFactoryvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CatalogSchemaFactory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static CatalogSchemaFactory[] 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 (CatalogSchemaFactory c : CatalogSchemaFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CatalogSchemaFactory valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toSchema
public static SchemaDTO toSchema(org.apache.flink.table.catalog.ResolvedSchema schema)
-
toSchema
public static SchemaDTO toSchema(org.apache.flink.table.api.Schema schema)
-
toCatalog
public static org.apache.flink.table.api.Schema toCatalog(SchemaDTO schemaDTO)
-
toColumn
public static ColumnDTO toColumn(org.apache.flink.table.catalog.Column column)
-
toColumn
public static ColumnDTO toColumn(org.apache.flink.table.api.Schema.UnresolvedColumn column)
-
addColumn
public static void addColumn(org.apache.flink.table.api.Schema.Builder schemaBuilder, ColumnDTO column)
-
toWatermark
public static WatermarkDTO toWatermark(org.apache.flink.table.catalog.WatermarkSpec watermark)
-
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)
-
-