Class EnvironmentReusableInMemoryCatalog
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalog
-
- org.apache.flink.table.catalog.GenericInMemoryCatalog
-
- org.apache.flink.table.gateway.service.context.EnvironmentReusableInMemoryCatalog
-
- All Implemented Interfaces:
org.apache.flink.table.catalog.Catalog
public class EnvironmentReusableInMemoryCatalog extends org.apache.flink.table.catalog.GenericInMemoryCatalogAn in-memory catalog that can be reused across differentTableEnvironment. The SQL client works againstTableEnvironmentdesign and reuses some of the components (e.g. CatalogManager), but not all (e.g. Planner) which causes e.g. views registered in an in-memory catalog to fail. This class is a workaround not to keep Planner bound parts of a view reused across differentTableEnvironment.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentReusableInMemoryCatalog(String name, String defaultDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists)-
Methods inherited from class org.apache.flink.table.catalog.GenericInMemoryCatalog
alterDatabase, alterFunction, alterModel, alterPartition, alterPartitionColumnStatistics, alterPartitionStatistics, alterTable, alterTableColumnStatistics, alterTableStatistics, close, createDatabase, createFunction, createModel, createPartition, databaseExists, dropDatabase, dropFunction, dropModel, dropPartition, dropTable, functionExists, getDatabase, getFunction, getModel, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getTable, getTableColumnStatistics, getTableStatistics, listDatabases, listFunctions, listModels, listPartitions, listPartitions, listPartitionsByFilter, listTables, listViews, modelExists, open, partitionExists, renameModel, renameTable, tableExists
-
Methods inherited from class org.apache.flink.table.catalog.AbstractCatalog
getDefaultDatabase, getName
-
-
-
-
Method Detail
-
createTable
public void createTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.TableAlreadyExistException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException- Specified by:
createTablein interfaceorg.apache.flink.table.catalog.Catalog- Overrides:
createTablein classorg.apache.flink.table.catalog.GenericInMemoryCatalog- Throws:
org.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
-