Package org.apache.flink.table.catalog
Interface CatalogModel
-
- All Known Subinterfaces:
ResolvedCatalogModel
- All Known Implementing Classes:
DefaultCatalogModel,DefaultResolvedCatalogModel
@PublicEvolving public interface CatalogModelInterface for a model in a catalog.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CatalogModelcopy()Get a deep copy of the CatalogModel instance.CatalogModelcopy(Map<String,String> options)Copy the input model options into the CatalogModel instance.StringgetComment()Get comment of the model.SchemagetInputSchema()Get the unresolved input schema of the model.Map<String,String>getOptions()Returns a map of string-based model options.SchemagetOutputSchema()Get the unresolved output schema of the model.static CatalogModelof(Schema inputSchema, Schema outputSchema, Map<String,String> modelOptions, String comment)Creates a basic implementation of this interface.
-
-
-
Method Detail
-
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
CatalogModel copy(Map<String,String> options)
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
-
-