Package org.apache.flink.table.api
Class ModelDescriptor
- java.lang.Object
-
- org.apache.flink.table.api.ModelDescriptor
-
@PublicEvolving public class ModelDescriptor extends Object
Describes aCatalogModelrepresenting a model.A
ModelDescriptoris a template for creating aCatalogModelinstance. It closely resembles the "CREATE MODEL" SQL DDL statement, containing input schema, output schema, and other characteristics.This can be used to register a Model in the Table API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelDescriptor.BuilderBuilder forModelDescriptor.
-
Constructor Summary
Constructors Modifier Constructor Description protectedModelDescriptor(org.apache.flink.table.api.Schema inputSchema, org.apache.flink.table.api.Schema outputSchema, Map<String,String> modelOptions, String comment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ModelDescriptor.BuilderforProvider(String provider)Creates a newModelDescriptor.Builderfor the model with the given provider option.inthashCode()ModelDescriptor.BuildertoBuilder()Converts this immutable instance into a mutableModelDescriptor.Builder.org.apache.flink.table.catalog.CatalogModeltoCatalogModel()Converts this descriptor into aCatalogModel.StringtoString()
-
-
-
Method Detail
-
toCatalogModel
public org.apache.flink.table.catalog.CatalogModel toCatalogModel()
Converts this descriptor into aCatalogModel.
-
toBuilder
public ModelDescriptor.Builder toBuilder()
Converts this immutable instance into a mutableModelDescriptor.Builder.
-
forProvider
public static ModelDescriptor.Builder forProvider(String provider)
Creates a newModelDescriptor.Builderfor the model with the given provider option.- Parameters:
provider- string value of provider for the model.
-
-