@Internal
public class MySqlCatalog
extends org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalog
| 构造器和说明 |
|---|
MySqlCatalog(ClassLoader userClassLoader,
String catalogName,
String defaultDatabase,
String baseUrl,
Properties connectionProperties) |
MySqlCatalog(ClassLoader userClassLoader,
String catalogName,
String defaultDatabase,
String username,
String pwd,
String baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.flink.table.types.DataType |
fromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath,
ResultSetMetaData metadata,
int colIndex)
Converts MySQL type to Flink
DataType. |
protected String |
getSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath) |
protected String |
getSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath) |
protected String |
getTableName(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, equals, extractColumnValuesBySQL, extractColumnValuesByStatement, functionExists, getBaseUrl, getDatabase, getDatabaseUrl, getFactory, getFunction, getOptions, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getPassword, getPrimaryKey, getTable, getTableColumnStatistics, getTableStatistics, getUsername, hashCode, listFunctions, listPartitions, listPartitions, listPartitionsByFilter, listViews, open, partitionExists, renameTable, validateJdbcUrl@VisibleForTesting public MySqlCatalog(ClassLoader userClassLoader, String catalogName, String defaultDatabase, String username, String pwd, String baseUrl)
public MySqlCatalog(ClassLoader userClassLoader, String catalogName, String defaultDatabase, String baseUrl, Properties connectionProperties)
public List<String> listDatabases() throws org.apache.flink.table.catalog.exceptions.CatalogException
org.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 boolean tableExists(org.apache.flink.table.catalog.ObjectPath tablePath)
throws org.apache.flink.table.catalog.exceptions.CatalogException
org.apache.flink.table.catalog.exceptions.CatalogExceptionprotected org.apache.flink.table.types.DataType fromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath,
ResultSetMetaData metadata,
int colIndex)
throws SQLException
DataType.fromJDBCType 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogSQLExceptionprotected String getTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
getTableName 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogprotected String getSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath)
getSchemaName 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogprotected String getSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
getSchemaTableName 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogCopyright © 2022–2025 The Apache Software Foundation. All rights reserved.