Package org.apache.flink.table.api
Class ModelDescriptor.Builder
java.lang.Object
org.apache.flink.table.api.ModelDescriptor.Builder
- Enclosing class:
- ModelDescriptor
Builder for
ModelDescriptor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns an immutable instance ofModelDescriptor.Define the comment for this model.inputSchema(Schema inputSchema) Define the input schema of theModelDescriptor.Sets the given option on the model.option(ConfigOption<T> configOption, T value) Sets the given option on the model.outputSchema(Schema outputSchema) Define the output schema of theModelDescriptor.
-
Method Details
-
option
Sets the given option on the model. -
option
Sets the given option on the model.Option keys must be fully specified.
Example:
ModelDescriptor.forProvider("OPENAI") .inputSchema(inputSchema) .outputSchema(outputSchema) .option("task", "regression") .build(); -
inputSchema
Define the input schema of theModelDescriptor. -
outputSchema
Define the output schema of theModelDescriptor. -
comment
Define the comment for this model. -
build
Returns an immutable instance ofModelDescriptor.
-