类 TablestoreDialect
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.tablestore.TablestoreDialect
-
- 所有已实现的接口:
Serializable,JdbcDialect
public class TablestoreDialect extends Object implements JdbcDialect
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialect
JdbcDialect.AlterType
-
-
字段概要
-
从接口继承的字段 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialect
log
-
-
构造器概要
构造器 构造器 说明 TablestoreDialect()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PreparedStatementcreatPreparedStatement(Connection connection, String queryTemplate, int fetchSize)Different dialects optimize their PreparedStatementStringdialectName()Get the name of jdbc dialect.JdbcDialectTypeMappergetJdbcDialectTypeMapper()get jdbc meta-information type to seatunnel data type mapper.ResultSetMetaDatagetResultSetMetaData(Connection conn, String query)JdbcRowConvertergetRowConverter()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'sDUPLICATE KEY UPDATE, or PostgreSQL'sON CONFLICT... DO UPDATE SET...-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialect
approximateRowCntStatement, buildAlterTableBasicSql, buildAlterTableSql, connectionUrlParse, convertType, decorateWithColumnNameAndType, decorateWithComment, decorateWithDefaultValue, decorateWithNullable, defaultParameter, extractTableName, generateAlterTableSql, getDeleteStatement, getFieldIde, getInsertIntoStatement, getJdbcConnectionProvider, getRowExistsStatement, getUpdateStatement, hashModForField, hashModForField, isSpecialDefaultValue, needsQuotesWithDefaultValue, parse, queryNextChunkMax, quoteDatabaseIdentifier, quoteIdentifier, quotesDefaultValue, refreshTableSchemaBySchemaChangeEvent, sampleDataFromColumn, tableIdentifier, tableIdentifier
-
-
-
-
方法详细资料
-
dialectName
public String dialectName()
从接口复制的说明:JdbcDialectGet the name of jdbc dialect.- 指定者:
dialectName在接口中JdbcDialect- 返回:
- the dialect name.
-
getRowConverter
public JdbcRowConverter getRowConverter()
从接口复制的说明:JdbcDialectGet converter that convert jdbc object to seatunnel internal object.- 指定者:
getRowConverter在接口中JdbcDialect- 返回:
- a row converter for the database
-
getJdbcDialectTypeMapper
public JdbcDialectTypeMapper getJdbcDialectTypeMapper()
从接口复制的说明:JdbcDialectget jdbc meta-information type to seatunnel data type mapper.- 指定者:
getJdbcDialectTypeMapper在接口中JdbcDialect- 返回:
- a type mapper for the database
-
getUpsertStatement
public Optional<String> getUpsertStatement(String database, String tableName, String[] fieldNames, String[] uniqueKeyFields)
从接口复制的说明:JdbcDialectConstructs the dialects upsert statement if supported; such as MySQL'sDUPLICATE KEY UPDATE, or PostgreSQL'sON 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 thefieldNamesparameter.If the dialect does not support native upsert statements, the writer will fallback to
SELECT ROW Exists+UPDATE/INSERTwhich may have poor performance.- 指定者:
getUpsertStatement在接口中JdbcDialect- 返回:
- the dialects
UPSERTstatement orOptional.empty().
-
creatPreparedStatement
public PreparedStatement creatPreparedStatement(Connection connection, String queryTemplate, int fetchSize) throws SQLException
从接口复制的说明:JdbcDialectDifferent dialects optimize their PreparedStatement- 指定者:
creatPreparedStatement在接口中JdbcDialect- 返回:
- The logic about optimize PreparedStatement
- 抛出:
SQLException
-
getResultSetMetaData
public ResultSetMetaData getResultSetMetaData(Connection conn, String query) throws SQLException
- 指定者:
getResultSetMetaData在接口中JdbcDialect- 抛出:
SQLException
-
-