Package org.apache.flink.table.catalog
Interface ResolvedCatalogModel
- All Superinterfaces:
CatalogModel
- All Known Implementing Classes:
DefaultResolvedCatalogModel
A validated
CatalogModel that is backed by the original metadata coming from the Catalog but resolved by the framework.-
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogModelfromProperties(Map<String, String> properties) Creates an instance ofCatalogModelfrom a map of string properties that were previously created withtoProperties().Returns the original, unresolved metadata object from theCatalog.Returns a fully resolved and validatedResolvedSchemainputSchema.Returns a fully resolved and validatedResolvedSchemaoutputSchema.static ResolvedCatalogModelof(CatalogModel origin, ResolvedSchema resolvedInputSchema, ResolvedSchema resolvedOutputSchema) Creates a basic implementation of this interface.Serializes this instance into a map of string-based properties.Methods inherited from interface org.apache.flink.table.catalog.CatalogModel
copy, copy, getComment, getInputSchema, getOptions, getOutputSchema
-
Method Details
-
getOrigin
CatalogModel getOrigin()Returns the original, unresolved metadata object from theCatalog.This method might be useful if catalog-specific object instances should be directly forwarded from the catalog to a factory.
-
getResolvedInputSchema
ResolvedSchema getResolvedInputSchema()Returns a fully resolved and validatedResolvedSchemainputSchema. -
getResolvedOutputSchema
ResolvedSchema getResolvedOutputSchema()Returns a fully resolved and validatedResolvedSchemaoutputSchema. -
toProperties
Serializes this instance into a map of string-based properties.Compared to the pure table options in
CatalogModel.getOptions(), the map includes input schema, output schema, comment and options. -
fromProperties
Creates an instance ofCatalogModelfrom a map of string properties that were previously created withtoProperties().- Parameters:
properties- serialized version of aResolvedCatalogModelthat includes input schema, output schema, comment and options.
-
of
static ResolvedCatalogModel of(CatalogModel origin, ResolvedSchema resolvedInputSchema, ResolvedSchema resolvedOutputSchema) Creates a basic implementation of this interface.- Parameters:
origin- origin unresolved catalog modelresolvedInputSchema- resolved input schemaresolvedOutputSchema- resolved output schema
-