public class PostgresLowDialect extends PostgresDialect
DEFAULT_POSTGRES_FETCH_SIZE, fieldIdelog| 构造器和说明 |
|---|
PostgresLowDialect(String fieldIde) |
| 限定符和类型 | 方法和说明 |
|---|---|
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... |
approximateRowCntStatement, creatPreparedStatement, dialectName, getJdbcDialectTypeMapper, getRowConverter, hashModForField, parse, quoteDatabaseIdentifier, quoteIdentifier, tableIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionUrlParse, defaultParameter, extractTableName, getDeleteStatement, getFieldIde, getInsertIntoStatement, getJdbcConnectionProvider, getResultSetMetaData, getRowExistsStatement, getUpdateStatement, queryNextChunkMax, sampleDataFromColumn, tableIdentifierpublic PostgresLowDialect(String fieldIde)
public 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 在接口中 JdbcDialectgetUpsertStatement 在类中 PostgresDialectUPSERT statement or Optional.empty().Copyright © 2024 The Apache Software Foundation. All rights reserved.