Class AbstractJdbcCatalog
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalog
-
- org.apache.flink.connector.jdbc.catalog.AbstractJdbcCatalog
-
- All Implemented Interfaces:
org.apache.flink.table.catalog.Catalog
- Direct Known Subclasses:
JdbcCatalog,MySqlCatalog,PostgresCatalog
public abstract class AbstractJdbcCatalog extends org.apache.flink.table.catalog.AbstractCatalogAbstract catalog for any JDBC catalogs.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseUrlprotected StringdefaultUrlprotected Stringpwdprotected ClassLoaderuserClassLoaderprotected Stringusername
-
Constructor Summary
Constructors Constructor Description AbstractJdbcCatalog(ClassLoader userClassLoader, String catalogName, String defaultDatabase, String username, String pwd, String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidalterDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase newDatabase, boolean ignoreIfNotExists)voidalterFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction newFunction, boolean ignoreIfNotExists)voidalterPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition newPartition, boolean ignoreIfNotExists)voidalterPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists)voidalterPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogTableStatistics partitionStatistics, boolean ignoreIfNotExists)voidalterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, boolean ignoreIfNotExists)voidalterTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists)voidalterTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogTableStatistics tableStatistics, boolean ignoreIfNotExists)voidclose()voidcreateDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase database, boolean ignoreIfExists)voidcreateFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction function, boolean ignoreIfExists)voidcreatePartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition partition, boolean ignoreIfExists)voidcreateTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists)booleandatabaseExists(String databaseName)voiddropDatabase(String name, boolean ignoreIfNotExists, boolean cascade)voiddropFunction(org.apache.flink.table.catalog.ObjectPath functionPath, boolean ignoreIfNotExists)voiddropPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, boolean ignoreIfNotExists)voiddropTable(org.apache.flink.table.catalog.ObjectPath tablePath, boolean ignoreIfNotExists)protected List<String>extractColumnValuesBySQL(String connUrl, String sql, int columnIndex, java.util.function.Predicate<String> filterFunc, Object... params)protected org.apache.flink.table.types.DataTypefromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath, ResultSetMetaData metadata, int colIndex)booleanfunctionExists(org.apache.flink.table.catalog.ObjectPath functionPath)StringgetBaseUrl()org.apache.flink.table.catalog.CatalogDatabasegetDatabase(String databaseName)Optional<org.apache.flink.table.factories.Factory>getFactory()org.apache.flink.table.catalog.CatalogFunctiongetFunction(org.apache.flink.table.catalog.ObjectPath functionPath)org.apache.flink.table.catalog.CatalogPartitiongetPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)org.apache.flink.table.catalog.stats.CatalogColumnStatisticsgetPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)org.apache.flink.table.catalog.stats.CatalogTableStatisticsgetPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)StringgetPassword()protected Optional<org.apache.flink.table.catalog.UniqueConstraint>getPrimaryKey(DatabaseMetaData metaData, String database, String schema, String table)protected StringgetSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath)protected StringgetSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath)org.apache.flink.table.catalog.CatalogBaseTablegetTable(org.apache.flink.table.catalog.ObjectPath tablePath)org.apache.flink.table.catalog.stats.CatalogColumnStatisticsgetTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath)protected StringgetTableName(org.apache.flink.table.catalog.ObjectPath tablePath)org.apache.flink.table.catalog.stats.CatalogTableStatisticsgetTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath)StringgetUsername()List<String>listFunctions(String dbName)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitionsByFilter(org.apache.flink.table.catalog.ObjectPath tablePath, List<org.apache.flink.table.expressions.Expression> filters)List<String>listViews(String databaseName)voidopen()booleanpartitionExists(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)voidrenameTable(org.apache.flink.table.catalog.ObjectPath tablePath, String newTableName, boolean ignoreIfNotExists)-
Methods inherited from class org.apache.flink.table.catalog.AbstractCatalog
getDefaultDatabase, getName
-
-
-
-
Field Detail
-
userClassLoader
protected final ClassLoader userClassLoader
-
username
protected final String username
-
pwd
protected final String pwd
-
baseUrl
protected final String baseUrl
-
defaultUrl
protected final String defaultUrl
-
-
Method Detail
-
open
public void open() throws org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.CatalogException
-
close
public void close() throws org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getBaseUrl
public String getBaseUrl()
-
getPrimaryKey
protected Optional<org.apache.flink.table.catalog.UniqueConstraint> getPrimaryKey(DatabaseMetaData metaData, String database, String schema, String table) throws SQLException
- Throws:
SQLException
-
getFactory
public Optional<org.apache.flink.table.factories.Factory> getFactory()
-
databaseExists
public boolean databaseExists(String databaseName) throws org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.CatalogException
-
createDatabase
public void createDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase database, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
dropDatabase
public void dropDatabase(String name, boolean ignoreIfNotExists, boolean cascade) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.DatabaseNotEmptyException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotEmptyExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterDatabase
public void alterDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase newDatabase, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getDatabase
public org.apache.flink.table.catalog.CatalogDatabase getDatabase(String databaseName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getTable
public 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- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
dropTable
public void dropTable(org.apache.flink.table.catalog.ObjectPath tablePath, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
renameTable
public void renameTable(org.apache.flink.table.catalog.ObjectPath tablePath, String newTableName, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableAlreadyExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
createTable
public void createTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.TableAlreadyExistException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterTable
public void alterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listViews
public List<String> listViews(String databaseName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitions
public List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableNotPartitionedException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotPartitionedExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitions
public List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableNotPartitionedException, org.apache.flink.table.catalog.exceptions.PartitionSpecInvalidException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotPartitionedExceptionorg.apache.flink.table.catalog.exceptions.PartitionSpecInvalidExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitionsByFilter
public List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitionsByFilter(org.apache.flink.table.catalog.ObjectPath tablePath, List<org.apache.flink.table.expressions.Expression> filters) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableNotPartitionedException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotPartitionedExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getPartition
public org.apache.flink.table.catalog.CatalogPartition getPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
partitionExists
public boolean partitionExists(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.CatalogException
-
createPartition
public void createPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition partition, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableNotPartitionedException, org.apache.flink.table.catalog.exceptions.PartitionSpecInvalidException, org.apache.flink.table.catalog.exceptions.PartitionAlreadyExistsException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotPartitionedExceptionorg.apache.flink.table.catalog.exceptions.PartitionSpecInvalidExceptionorg.apache.flink.table.catalog.exceptions.PartitionAlreadyExistsExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
dropPartition
public void dropPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterPartition
public void alterPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition newPartition, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listFunctions
public List<String> listFunctions(String dbName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getFunction
public org.apache.flink.table.catalog.CatalogFunction getFunction(org.apache.flink.table.catalog.ObjectPath functionPath) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
functionExists
public boolean functionExists(org.apache.flink.table.catalog.ObjectPath functionPath) throws org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.CatalogException
-
createFunction
public void createFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction function, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.FunctionAlreadyExistException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.FunctionAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterFunction
public void alterFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction newFunction, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
dropFunction
public void dropFunction(org.apache.flink.table.catalog.ObjectPath functionPath, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getTableStatistics
public org.apache.flink.table.catalog.stats.CatalogTableStatistics getTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getTableColumnStatistics
public org.apache.flink.table.catalog.stats.CatalogColumnStatistics getTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getPartitionStatistics
public org.apache.flink.table.catalog.stats.CatalogTableStatistics getPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getPartitionColumnStatistics
public org.apache.flink.table.catalog.stats.CatalogColumnStatistics getPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterTableStatistics
public void alterTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogTableStatistics tableStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterTableColumnStatistics
public void alterTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException, org.apache.flink.table.catalog.exceptions.TablePartitionedException- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogExceptionorg.apache.flink.table.catalog.exceptions.TablePartitionedException
-
alterPartitionStatistics
public void alterPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogTableStatistics partitionStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterPartitionColumnStatistics
public void alterPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- Throws:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
extractColumnValuesBySQL
protected List<String> extractColumnValuesBySQL(String connUrl, String sql, int columnIndex, java.util.function.Predicate<String> filterFunc, Object... params)
-
fromJDBCType
protected org.apache.flink.table.types.DataType fromJDBCType(org.apache.flink.table.catalog.ObjectPath tablePath, ResultSetMetaData metadata, int colIndex) throws SQLException- Throws:
SQLException
-
getTableName
protected String getTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
-
getSchemaName
protected String getSchemaName(org.apache.flink.table.catalog.ObjectPath tablePath)
-
getSchemaTableName
protected String getSchemaTableName(org.apache.flink.table.catalog.ObjectPath tablePath)
-
-