@PublicEvolving public class JdbcCatalog extends AbstractJdbcCatalog
baseUrl, defaultUrl, pwd, userClassLoader, username| Constructor and Description |
|---|
JdbcCatalog(ClassLoader userClassLoader,
String catalogName,
String defaultDatabase,
String username,
String pwd,
String baseUrl)
Creates a JdbcCatalog.
|
JdbcCatalog(String catalogName,
String defaultDatabase,
String username,
String pwd,
String baseUrl)
Deprecated.
please use
JdbcCatalog(ClassLoader, String, String, String,
String, String) instead. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.catalog.CatalogDatabase |
getDatabase(String databaseName) |
AbstractJdbcCatalog |
getInternal() |
org.apache.flink.table.catalog.CatalogBaseTable |
getTable(org.apache.flink.table.catalog.ObjectPath tablePath) |
List<String> |
listDatabases() |
List<String> |
listTables(String databaseName) |
boolean |
tableExists(org.apache.flink.table.catalog.ObjectPath tablePath) |
alterDatabase, alterFunction, alterPartition, alterPartitionColumnStatistics, alterPartitionStatistics, alterTable, alterTableColumnStatistics, alterTableStatistics, close, createDatabase, createFunction, createPartition, createTable, databaseExists, dropDatabase, dropFunction, dropPartition, dropTable, extractColumnValuesBySQL, fromJDBCType, functionExists, getBaseUrl, getFactory, getFunction, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getPassword, getPrimaryKey, getSchemaName, getSchemaTableName, getTableColumnStatistics, getTableName, getTableStatistics, getUsername, listFunctions, listPartitions, listPartitions, listPartitionsByFilter, listViews, open, partitionExists, renameTablegetDefaultDatabase, getNamepublic JdbcCatalog(String catalogName, String defaultDatabase, String username, String pwd, String baseUrl)
JdbcCatalog(ClassLoader, String, String, String,
String, String) instead.public JdbcCatalog(ClassLoader userClassLoader, String catalogName, String defaultDatabase, String username, String pwd, String baseUrl)
userClassLoader - the classloader used to load JDBC drivercatalogName - the registered catalog namedefaultDatabase - the default database nameusername - the username used to connect the databasepwd - the password used to connect the databasebaseUrl - the base URL of the database, e.g. jdbc:mysql://localhost:3306public List<String> listDatabases() throws org.apache.flink.table.catalog.exceptions.CatalogException
org.apache.flink.table.catalog.exceptions.CatalogExceptionpublic org.apache.flink.table.catalog.CatalogDatabase getDatabase(String databaseName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
getDatabase in interface org.apache.flink.table.catalog.CataloggetDatabase in class AbstractJdbcCatalogorg.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogExceptionpublic List<String> listTables(String databaseName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogExceptionpublic org.apache.flink.table.catalog.CatalogBaseTable getTable(org.apache.flink.table.catalog.ObjectPath tablePath)
throws org.apache.flink.table.catalog.exceptions.TableNotExistException,
org.apache.flink.table.catalog.exceptions.CatalogException
getTable in interface org.apache.flink.table.catalog.CataloggetTable in class AbstractJdbcCatalogorg.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogExceptionpublic boolean tableExists(org.apache.flink.table.catalog.ObjectPath tablePath)
throws org.apache.flink.table.catalog.exceptions.CatalogException
org.apache.flink.table.catalog.exceptions.CatalogException@VisibleForTesting @Internal public AbstractJdbcCatalog getInternal()
Copyright © 2022–2024 The Apache Software Foundation. All rights reserved.