@Internal
public class OceanBaseCatalog
extends org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalog
| 构造器和说明 |
|---|
OceanBaseCatalog(ClassLoader userClassLoader,
String catalogName,
OceanBaseCompatibleMode compatibleMode,
String defaultDatabase,
String baseUrl,
Properties connectionProperties) |
OceanBaseCatalog(ClassLoader userClassLoader,
String catalogName,
OceanBaseCompatibleMode compatibleMode,
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 OceanBase type to Flink
DataType. |
protected Map<String,String> |
getOptions(org.apache.flink.table.catalog.ObjectPath tablePath) |
protected Optional<org.apache.flink.table.catalog.UniqueConstraint> |
getPrimaryKey(DatabaseMetaData metaData,
String database,
String schema,
String table) |
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, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getPassword, getTable, getTableColumnStatistics, getTableStatistics, getUsername, hashCode, listFunctions, listPartitions, listPartitions, listPartitionsByFilter, listViews, open, partitionExists, renameTable, validateJdbcUrlpublic OceanBaseCatalog(ClassLoader userClassLoader, String catalogName, OceanBaseCompatibleMode compatibleMode, String defaultDatabase, String username, String pwd, String baseUrl)
public OceanBaseCatalog(ClassLoader userClassLoader, String catalogName, OceanBaseCompatibleMode compatibleMode, 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 Optional<org.apache.flink.table.catalog.UniqueConstraint> getPrimaryKey(DatabaseMetaData metaData, String database, String schema, String table) throws SQLException
getPrimaryKey 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogSQLExceptionprotected Map<String,String> getOptions(org.apache.flink.table.catalog.ObjectPath tablePath)
getOptions 在类中 org.apache.flink.connector.jdbc.core.database.catalog.AbstractJdbcCatalogprotected 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.