类 XuguCatalog
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.xugu.XuguCatalog
-
- 所有已实现的接口:
AutoCloseable,org.apache.seatunnel.api.table.catalog.Catalog
public class XuguCatalog extends AbstractJdbcCatalog
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog
AbstractJdbcCatalog.ResultSetConsumer<T>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static List<String>EXCLUDED_SCHEMAS-
从类继承的字段 org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog
baseUrl, catalogName, connectionMap, defaultDatabase, defaultSchema, defaultUrl, pwd, suffix, SYS_DATABASES, username
-
-
构造器概要
构造器 构造器 说明 XuguCatalog(String catalogName, String username, String pwd, org.apache.seatunnel.common.utils.JdbcUrlUtil.UrlInfo urlInfo, String defaultSchema)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected org.apache.seatunnel.api.table.catalog.ColumnbuildColumn(ResultSet resultSet)protected List<org.apache.seatunnel.api.table.catalog.ConstraintKey>getConstraintKeys(DatabaseMetaData metaData, org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetCreateDatabaseSql(String databaseName)protected StringgetCreateTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath, org.apache.seatunnel.api.table.catalog.CatalogTable table, boolean createIndex)protected StringgetDatabaseWithConditionSql(String databaseName)protected StringgetDropDatabaseSql(String databaseName)protected StringgetDropTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetExistDataSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetListDatabaseSql()protected StringgetListTableSql(String databaseName)protected StringgetOptionTableName(org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetSelectColumnsSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)org.apache.seatunnel.api.table.catalog.CatalogTablegetTable(String sqlQuery)protected StringgetTableName(ResultSet rs)protected StringgetTableWithConditionSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetTruncateTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)protected StringgetUrlFromDatabaseName(String databaseName)-
从类继承的方法 org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog
buildColumnsWithErrorCheck, buildConnectorOptions, close, closeDatabaseConnection, createDatabase, createDatabaseInternal, createTable, createTable, createTableInternal, databaseExists, dropDatabase, dropDatabaseInternal, dropTable, dropTableInternal, executeInternal, executeSql, getConnection, getConstraintKeys, getCreateTableSqls, getDefaultDatabase, getPrimaryKey, getPrimaryKey, getTable, getTableIdentifier, getTableName, isExistsData, listDatabases, listTables, name, open, previewAction, querySQLResultExists, queryString, tableExists, truncateTable, truncateTableInternal
-
-
-
-
方法详细资料
-
getTableWithConditionSql
protected String getTableWithConditionSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
-
getListDatabaseSql
protected String getListDatabaseSql()
-
getCreateTableSql
protected String getCreateTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath, org.apache.seatunnel.api.table.catalog.CatalogTable table, boolean createIndex)
- 覆盖:
getCreateTableSql在类中AbstractJdbcCatalog
-
getDropTableSql
protected String getDropTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
- 覆盖:
getDropTableSql在类中AbstractJdbcCatalog
-
getListTableSql
protected String getListTableSql(String databaseName)
- 覆盖:
getListTableSql在类中AbstractJdbcCatalog
-
getTableName
protected String getTableName(ResultSet rs) throws SQLException
- 覆盖:
getTableName在类中AbstractJdbcCatalog- 抛出:
SQLException
-
getSelectColumnsSql
protected String getSelectColumnsSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
-
buildColumn
protected org.apache.seatunnel.api.table.catalog.Column buildColumn(ResultSet resultSet) throws SQLException
- 覆盖:
buildColumn在类中AbstractJdbcCatalog- 抛出:
SQLException
-
getOptionTableName
protected String getOptionTableName(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
-
getTable
public org.apache.seatunnel.api.table.catalog.CatalogTable getTable(String sqlQuery) throws SQLException
- 覆盖:
getTable在类中AbstractJdbcCatalog- 抛出:
SQLException
-
getTruncateTableSql
protected String getTruncateTableSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
-
getExistDataSql
protected String getExistDataSql(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
- 覆盖:
getExistDataSql在类中AbstractJdbcCatalog
-
getConstraintKeys
protected List<org.apache.seatunnel.api.table.catalog.ConstraintKey> getConstraintKeys(DatabaseMetaData metaData, org.apache.seatunnel.api.table.catalog.TablePath tablePath) throws SQLException
- 覆盖:
getConstraintKeys在类中AbstractJdbcCatalog- 抛出:
SQLException
-
-