public class TablestoreDialect extends Object implements JdbcDialect
log| 构造器和说明 |
|---|
TablestoreDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
creatPreparedStatement(Connection connection,
String queryTemplate,
int fetchSize)
Different dialects optimize their PreparedStatement
|
String |
dialectName()
Get the name of jdbc dialect.
|
JdbcDialectTypeMapper |
getJdbcDialectTypeMapper()
get jdbc meta-information type to seatunnel data type mapper.
|
ResultSetMetaData |
getResultSetMetaData(Connection conn,
String query) |
JdbcRowConverter |
getRowConverter()
Get converter that convert jdbc object to seatunnel internal object.
|
Optional<String> |
getUpsertStatement(String database,
String tableName,
String[] fieldNames,
String[] uniqueKeyFields)
Constructs the dialects upsert statement if supported; such as MySQL's
DUPLICATE KEY
UPDATE, or PostgreSQL's {@code ON CONFLICT... |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapproximateRowCntStatement, connectionUrlParse, defaultParameter, extractTableName, getDeleteStatement, getFieldIde, getInsertIntoStatement, getJdbcConnectionProvider, getRowExistsStatement, getUpdateStatement, hashModForField, parse, queryNextChunkMax, quoteDatabaseIdentifier, quoteIdentifier, sampleDataFromColumn, tableIdentifier, tableIdentifierpublic String dialectName()
JdbcDialectdialectName 在接口中 JdbcDialectpublic JdbcRowConverter getRowConverter()
JdbcDialectgetRowConverter 在接口中 JdbcDialectpublic JdbcDialectTypeMapper getJdbcDialectTypeMapper()
JdbcDialectgetJdbcDialectTypeMapper 在接口中 JdbcDialectpublic Optional<String> getUpsertStatement(String database, String tableName, String[] fieldNames, String[] uniqueKeyFields)
JdbcDialectDUPLICATE KEY
UPDATE, or PostgreSQL's ON CONFLICT... DO UPDATE SET...
If supported, the returned string will be used as a PreparedStatement.
Fields in the statement must be in the same order as the fieldNames parameter.
If the dialect does not support native upsert statements, the writer will fallback to
SELECT ROW Exists + UPDATE/INSERT which may have poor performance.
getUpsertStatement 在接口中 JdbcDialectUPSERT statement or Optional.empty().public PreparedStatement creatPreparedStatement(Connection connection, String queryTemplate, int fetchSize) throws SQLException
JdbcDialectcreatPreparedStatement 在接口中 JdbcDialectSQLExceptionpublic ResultSetMetaData getResultSetMetaData(Connection conn, String query) throws SQLException
getResultSetMetaData 在接口中 JdbcDialectSQLExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.