类 XuguDialect
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.xugu.XuguDialect
-
- 所有已实现的接口:
Serializable,JdbcDialect
public class XuguDialect extends Object implements JdbcDialect
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialect
JdbcDialect.AlterType
-
-
字段概要
字段 修饰符和类型 字段 说明 StringfieldIde-
从接口继承的字段 org.apache.seatunnel.connectors.seatunnel.jdbc.internal.dialect.JdbcDialect
log
-
-
构造器概要
构造器 构造器 说明 XuguDialect()XuguDialect(String fieldIde)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PreparedStatementcreatPreparedStatement(Connection connection, String queryTemplate, int fetchSize)Different dialects optimize their PreparedStatementStringdialectName()Get the name of jdbc dialect.StringextractTableName(org.apache.seatunnel.api.table.catalog.TablePath tablePath)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...org.apache.seatunnel.api.table.catalog.TablePathparse(String tablePath)ObjectqueryNextChunkMax(Connection connection, JdbcSourceTable table, String columnName, int chunkSize, Object includedLowerBound)Query the maximum value of the next chunk, and the next chunk must be greater than or equal toincludedLowerBoundvalue [min_1, max_1), [min_2, max_2),...StringquoteIdentifier(String identifier)Quotes the identifier for table name or field nameStringtableIdentifier(String database, String tableName)StringtableIdentifier(org.apache.seatunnel.api.table.catalog.TablePath tablePath)-
从类继承的方法 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, generateAlterTableSql, getDeleteStatement, getFieldIde, getInsertIntoStatement, getJdbcConnectionProvider, getRowExistsStatement, getUpdateStatement, hashModForField, hashModForField, isSpecialDefaultValue, needsQuotesWithDefaultValue, quoteDatabaseIdentifier, quotesDefaultValue, refreshTableSchemaBySchemaChangeEvent, sampleDataFromColumn
-
-
-
-
字段详细资料
-
fieldIde
public String fieldIde
-
-
构造器详细资料
-
XuguDialect
public XuguDialect(String fieldIde)
-
XuguDialect
public XuguDialect()
-
-
方法详细资料
-
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
-
quoteIdentifier
public String quoteIdentifier(String identifier)
从接口复制的说明:JdbcDialectQuotes the identifier for table name or field name- 指定者:
quoteIdentifier在接口中JdbcDialect
-
tableIdentifier
public String tableIdentifier(String database, String tableName)
- 指定者:
tableIdentifier在接口中JdbcDialect
-
extractTableName
public String extractTableName(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
- 指定者:
extractTableName在接口中JdbcDialect
-
parse
public org.apache.seatunnel.api.table.catalog.TablePath parse(String tablePath)
- 指定者:
parse在接口中JdbcDialect
-
tableIdentifier
public String tableIdentifier(org.apache.seatunnel.api.table.catalog.TablePath tablePath)
- 指定者:
tableIdentifier在接口中JdbcDialect
-
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
-
queryNextChunkMax
public Object queryNextChunkMax(Connection connection, JdbcSourceTable table, String columnName, int chunkSize, Object includedLowerBound) throws SQLException
从接口复制的说明:JdbcDialectQuery the maximum value of the next chunk, and the next chunk must be greater than or equal toincludedLowerBoundvalue [min_1, max_1), [min_2, max_2),... [min_n, null). Each time this method is called it will return max1, max2...- 指定者:
queryNextChunkMax在接口中JdbcDialect- 参数:
connection- JDBC connection.table- table info.columnName- column name.chunkSize- chunk size.includedLowerBound- the previous chunk end value.- 返回:
- next chunk end value.
- 抛出:
SQLException
-
getResultSetMetaData
public ResultSetMetaData getResultSetMetaData(Connection conn, String query) throws SQLException
- 指定者:
getResultSetMetaData在接口中JdbcDialect- 抛出:
SQLException
-
-