Package org.apache.flink.table.catalog
Interface CatalogModel
- All Known Subinterfaces:
ResolvedCatalogModel
- All Known Implementing Classes:
DefaultCatalogModel,DefaultResolvedCatalogModel
@PublicEvolving
public interface CatalogModel
Interface for a model in a catalog.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Get a deep copy of the CatalogModel instance.Copy the input model options into the CatalogModel instance.Get comment of the model.Get the unresolved input schema of the model.Returns a map of string-based model options.Get the unresolved output schema of the model.static CatalogModelCreates a basic implementation of this interface.
-
Method Details
-
getOptions
Returns a map of string-based model options. -
getInputSchema
Schema getInputSchema()Get the unresolved input schema of the model.- Returns:
- unresolved input schema of the model.
-
getOutputSchema
Schema getOutputSchema()Get the unresolved output schema of the model.- Returns:
- unresolved output schema of the model.
-
getComment
String getComment()Get comment of the model.- Returns:
- comment of the model.
-
copy
CatalogModel copy()Get a deep copy of the CatalogModel instance.- Returns:
- a copy of the CatalogModel instance
-
copy
Copy the input model options into the CatalogModel instance.- Returns:
- a copy of the CatalogModel instance with new model options.
-
of
static CatalogModel of(Schema inputSchema, Schema outputSchema, Map<String, String> modelOptions, @Nullable String comment) Creates a basic implementation of this interface.- Parameters:
inputSchema- unresolved input schemaoutputSchema- unresolved output schemamodelOptions- model optionscomment- optional comment
-