Enum CatalogSchemaFactory

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addColumn​(org.apache.flink.table.api.Schema.Builder schemaBuilder, ColumnDTO column)  
      static void addConstraint​(org.apache.flink.table.api.Schema.Builder schemaBuilder, UniqueConstraintDTO constraint)  
      static void addWatermark​(org.apache.flink.table.api.Schema.Builder schemaBuilder, WatermarkDTO watermark)  
      static org.apache.flink.table.api.Schema toCatalog​(SchemaDTO schemaDTO)  
      static ColumnDTO toColumn​(org.apache.flink.table.api.Schema.UnresolvedColumn column)  
      static ColumnDTO toColumn​(org.apache.flink.table.catalog.Column column)  
      static UniqueConstraintDTO toConstraint​(org.apache.flink.table.api.Schema.UnresolvedPrimaryKey constraint)  
      static UniqueConstraintDTO toConstraint​(org.apache.flink.table.catalog.UniqueConstraint constraint)  
      static SchemaDTO toSchema​(org.apache.flink.table.api.Schema schema)  
      static SchemaDTO toSchema​(org.apache.flink.table.catalog.ResolvedSchema schema)  
      static WatermarkDTO toWatermark​(org.apache.flink.table.api.Schema.UnresolvedWatermarkSpec watermark)  
      static WatermarkDTO toWatermark​(org.apache.flink.table.catalog.WatermarkSpec watermark)  
      static CatalogSchemaFactory valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.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)