@Internal public class PostgresCatalog extends AbstractJdbcCatalog
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_DATABASE |
baseUrl, defaultUrl, pwd, userClassLoader, username| 限定符 | 构造器和说明 |
|---|---|
protected |
PostgresCatalog(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 Postgres 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, extractColumnValuesBySQL, functionExists, getBaseUrl, getDatabase, getFactory, getFunction, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getPassword, getPrimaryKey, getTable, getTableColumnStatistics, getTableStatistics, getUsername, listFunctions, listPartitions, listPartitions, listPartitionsByFilter, listViews, open, partitionExists, renameTablepublic 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.CatalogExceptionprotected org.apache.flink.table.types.DataType fromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath,
ResultSetMetaData metadata,
int colIndex)
throws SQLException
DataType.fromJDBCType 在类中 AbstractJdbcCatalogSQLExceptionTypeInfoCachepublic boolean tableExists(org.apache.flink.table.catalog.ObjectPath tablePath)
throws org.apache.flink.table.catalog.exceptions.CatalogException
org.apache.flink.table.catalog.exceptions.CatalogExceptionprotected String getTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
getTableName 在类中 AbstractJdbcCatalogprotected String getSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath)
getSchemaName 在类中 AbstractJdbcCatalogprotected String getSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.