Package org.apache.flink.table.catalog
Class DefaultResolvedCatalogModel
- java.lang.Object
-
- org.apache.flink.table.catalog.DefaultResolvedCatalogModel
-
- All Implemented Interfaces:
CatalogModel,ResolvedCatalogModel
@PublicEvolving public final class DefaultResolvedCatalogModel extends Object implements ResolvedCatalogModel, CatalogModel
A validatedCatalogModelthat is backed by the original metadata coming from theCatalogbut resolved by the framework.
-
-
Constructor Summary
Constructors Constructor Description DefaultResolvedCatalogModel(CatalogModel origin, ResolvedSchema resolvedInputSchema, ResolvedSchema resolvedOutputSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedCatalogModelcopy()Get a deep copy of the CatalogModel instance.ResolvedCatalogModelcopy(Map<String,String> modelOptions)Copy the input model options into the CatalogModel instance.booleanequals(Object o)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.CatalogModelgetOrigin()Returns the original, unresolved metadata object from theCatalog.SchemagetOutputSchema()Get the unresolved output schema of the model.ResolvedSchemagetResolvedInputSchema()Returns a fully resolved and validatedResolvedSchemainputSchema.ResolvedSchemagetResolvedOutputSchema()Returns a fully resolved and validatedResolvedSchemaoutputSchema.inthashCode()Map<String,String>toProperties(SqlFactory sqlFactory)Serializes this instance into a map of string-based properties.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.catalog.ResolvedCatalogModel
toProperties
-
-
-
-
Constructor Detail
-
DefaultResolvedCatalogModel
public DefaultResolvedCatalogModel(CatalogModel origin, ResolvedSchema resolvedInputSchema, ResolvedSchema resolvedOutputSchema)
-
-
Method Detail
-
getOrigin
public CatalogModel getOrigin()
Description copied from interface:ResolvedCatalogModelReturns 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.
- Specified by:
getOriginin interfaceResolvedCatalogModel
-
getResolvedInputSchema
public ResolvedSchema getResolvedInputSchema()
Description copied from interface:ResolvedCatalogModelReturns a fully resolved and validatedResolvedSchemainputSchema.- Specified by:
getResolvedInputSchemain interfaceResolvedCatalogModel
-
getResolvedOutputSchema
public ResolvedSchema getResolvedOutputSchema()
Description copied from interface:ResolvedCatalogModelReturns a fully resolved and validatedResolvedSchemaoutputSchema.- Specified by:
getResolvedOutputSchemain interfaceResolvedCatalogModel
-
toProperties
public Map<String,String> toProperties(SqlFactory sqlFactory)
Description copied from interface:ResolvedCatalogModelSerializes 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.- Specified by:
toPropertiesin interfaceResolvedCatalogModel
-
getOptions
public Map<String,String> getOptions()
Description copied from interface:CatalogModelReturns a map of string-based model options.- Specified by:
getOptionsin interfaceCatalogModel
-
getInputSchema
public Schema getInputSchema()
Description copied from interface:CatalogModelGet the unresolved input schema of the model.- Specified by:
getInputSchemain interfaceCatalogModel- Returns:
- unresolved input schema of the model.
-
getOutputSchema
public Schema getOutputSchema()
Description copied from interface:CatalogModelGet the unresolved output schema of the model.- Specified by:
getOutputSchemain interfaceCatalogModel- Returns:
- unresolved output schema of the model.
-
getComment
public String getComment()
Description copied from interface:CatalogModelGet comment of the model.- Specified by:
getCommentin interfaceCatalogModel- Returns:
- comment of the model.
-
copy
public ResolvedCatalogModel copy()
Description copied from interface:CatalogModelGet a deep copy of the CatalogModel instance.- Specified by:
copyin interfaceCatalogModel- Returns:
- a copy of the CatalogModel instance
-
copy
public ResolvedCatalogModel copy(Map<String,String> modelOptions)
Description copied from interface:CatalogModelCopy the input model options into the CatalogModel instance.- Specified by:
copyin interfaceCatalogModel- Returns:
- a copy of the CatalogModel instance with new model options.
-
-