Package org.apache.flink.table.api
Class ModelDescriptor
- java.lang.Object
-
- org.apache.flink.table.api.ModelDescriptor
-
@PublicEvolving public class ModelDescriptor extends Object
Describes aCatalogModel
representing a model.A
ModelDescriptor
is a template for creating aCatalogModel
instance. 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 class
ModelDescriptor.Builder
Builder forModelDescriptor
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModelDescriptor(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 boolean
equals(Object o)
static ModelDescriptor.Builder
forProvider(String provider)
Creates a newModelDescriptor.Builder
for the model with the given provider option.int
hashCode()
ModelDescriptor.Builder
toBuilder()
Converts this immutable instance into a mutableModelDescriptor.Builder
.org.apache.flink.table.catalog.CatalogModel
toCatalogModel()
Converts this descriptor into aCatalogModel
.String
toString()
-
-
-
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.Builder
for the model with the given provider option.- Parameters:
provider
- string value of provider for the model.
-
-