Package org.apache.flink.table.catalog
Interface CatalogBaseTable
-
- All Known Subinterfaces:
CatalogMaterializedTable,CatalogTable,CatalogView,ResolvedCatalogBaseTable<T>
- All Known Implementing Classes:
DefaultCatalogMaterializedTable,DefaultCatalogTable,ResolvedCatalogMaterializedTable,ResolvedCatalogTable,ResolvedCatalogView
@PublicEvolving public interface CatalogBaseTableA common parent that describes the unresolved metadata of a table or view in a catalog.- See Also:
CatalogTable,CatalogView
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCatalogBaseTable.TableKindThe kind ofCatalogBaseTable.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CatalogBaseTablecopy()Get a deep copy of the CatalogBaseTable instance.StringgetComment()Get comment of the table or view.Optional<String>getDescription()Get a brief description of the table or view.Optional<String>getDetailedDescription()Get a detailed description of the table or view.Map<String,String>getOptions()Returns a map of string-based options.default TableSchemagetSchema()Deprecated.This method returns the deprecatedTableSchemaclass.CatalogBaseTable.TableKindgetTableKind()The kind of table thisCatalogBaseTabledescribes.default SchemagetUnresolvedSchema()Returns the schema of the table or view.
-
-
-
Method Detail
-
getTableKind
CatalogBaseTable.TableKind getTableKind()
The kind of table thisCatalogBaseTabledescribes.
-
getOptions
Map<String,String> getOptions()
Returns a map of string-based options.In case of
CatalogTable, these options may determine the kind of connector and its configuration for accessing the data in the external system. SeeDynamicTableFactoryfor more information. If aCatalogTableshould not be serializable, an implementation can simply throw a runtime exception in this method.
-
getSchema
@Deprecated default TableSchema getSchema()
Deprecated.This method returns the deprecatedTableSchemaclass. The old class was a hybrid of resolved and unresolved schema information. It has been replaced by the newSchemawhich is always unresolved and will be resolved by the framework later.
-
getUnresolvedSchema
default Schema getUnresolvedSchema()
Returns the schema of the table or view.The schema can reference objects from other catalogs and will be resolved and validated by the framework when accessing the table or view.
- See Also:
ResolvedCatalogTable,ResolvedCatalogView
-
getComment
String getComment()
Get comment of the table or view.- Returns:
- comment of the table/view.
-
copy
CatalogBaseTable copy()
Get a deep copy of the CatalogBaseTable instance.- Returns:
- a copy of the CatalogBaseTable instance
-
getDescription
Optional<String> getDescription()
Get a brief description of the table or view.- Returns:
- an optional short description of the table/view
-
-