Package org.apache.flink.table.catalog
Interface ResolvedCatalogModel
-
- All Superinterfaces:
CatalogModel
- All Known Implementing Classes:
DefaultResolvedCatalogModel
@PublicEvolving public interface ResolvedCatalogModel extends CatalogModel
A validatedCatalogModelthat is backed by the original metadata coming from theCatalogbut resolved by the framework.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CatalogModelfromProperties(Map<String,String> properties)Creates an instance ofCatalogModelfrom a map of string properties that were previously created withtoProperties(SqlFactory).CatalogModelgetOrigin()Returns the original, unresolved metadata object from theCatalog.ResolvedSchemagetResolvedInputSchema()Returns a fully resolved and validatedResolvedSchemainputSchema.ResolvedSchemagetResolvedOutputSchema()Returns a fully resolved and validatedResolvedSchemaoutputSchema.static ResolvedCatalogModelof(CatalogModel origin, ResolvedSchema resolvedInputSchema, ResolvedSchema resolvedOutputSchema)Creates a basic implementation of this interface.default Map<String,String>toProperties()Serializes this instance into a map of string-based properties.Map<String,String>toProperties(SqlFactory sqlFactory)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 Detail
-
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
default Map<String,String> 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.
-
toProperties
Map<String,String> toProperties(SqlFactory sqlFactory)
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
static CatalogModel fromProperties(Map<String,String> properties)
Creates an instance ofCatalogModelfrom a map of string properties that were previously created withtoProperties(SqlFactory).- 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
-
-