@Internal public class PostgresCatalog extends AbstractJdbcCatalog
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATABASE |
baseUrl, defaultUrl, pwd, userClassLoader, username| Constructor and Description |
|---|
PostgresCatalog(ClassLoader userClassLoader,
String catalogName,
String defaultDatabase,
String username,
String pwd,
String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
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, renameTablegetDefaultDatabase, getNamepublic static final String DEFAULT_DATABASE
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.CatalogExceptionprotected org.apache.flink.table.types.DataType fromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath,
ResultSetMetaData metadata,
int colIndex)
throws SQLException
DataType.fromJDBCType in class 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 in class AbstractJdbcCatalogprotected String getSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath)
getSchemaName in class AbstractJdbcCatalogprotected String getSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
getSchemaTableName in class AbstractJdbcCatalogCopyright © 2022–2024 The Apache Software Foundation. All rights reserved.