public class OracleDialect extends Object implements JdbcDialect
| 限定符和类型 | 字段和说明 |
|---|---|
String |
fieldIde |
log| 构造器和说明 |
|---|
OracleDialect() |
OracleDialect(String fieldIde) |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
approximateRowCntStatement(Connection connection,
JdbcSourceTable table)
Approximate total number of entries in the lookup table.
|
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.
|
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... |
String |
hashModForField(String fieldName,
int mod) |
TablePath |
parse(String tablePath) |
Object |
queryNextChunkMax(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
to
includedLowerBound value [min_1, max_1), [min_2, max_2),... |
String |
quoteIdentifier(String identifier)
Quotes the identifier for table name or field name
|
String |
tableIdentifier(String database,
String tableName) |
String |
tableIdentifier(TablePath tablePath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionUrlParse, defaultParameter, extractTableName, getDeleteStatement, getFieldIde, getInsertIntoStatement, getJdbcConnectionProvider, getResultSetMetaData, getRowExistsStatement, getUpdateStatement, quoteDatabaseIdentifier, sampleDataFromColumnpublic String fieldIde
public OracleDialect(String fieldIde)
public OracleDialect()
public String dialectName()
JdbcDialectdialectName 在接口中 JdbcDialectpublic JdbcRowConverter getRowConverter()
JdbcDialectgetRowConverter 在接口中 JdbcDialectpublic String hashModForField(String fieldName, int mod)
hashModForField 在接口中 JdbcDialectpublic JdbcDialectTypeMapper getJdbcDialectTypeMapper()
JdbcDialectgetJdbcDialectTypeMapper 在接口中 JdbcDialectpublic String quoteIdentifier(String identifier)
JdbcDialectquoteIdentifier 在接口中 JdbcDialectpublic String tableIdentifier(String database, String tableName)
tableIdentifier 在接口中 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 TablePath parse(String tablePath)
parse 在接口中 JdbcDialectpublic String tableIdentifier(TablePath tablePath)
tableIdentifier 在接口中 JdbcDialectpublic Long approximateRowCntStatement(Connection connection, JdbcSourceTable table) throws SQLException
JdbcDialectapproximateRowCntStatement 在接口中 JdbcDialectconnection - The JDBC connection object used to connect to the database.table - table info.SQLExceptionpublic Object queryNextChunkMax(Connection connection, JdbcSourceTable table, String columnName, int chunkSize, Object includedLowerBound) throws SQLException
JdbcDialectincludedLowerBound value [min_1, max_1), [min_2, max_2),... [min_n, null).
Each time this method is called it will return max1, max2...queryNextChunkMax 在接口中 JdbcDialectconnection - JDBC connection.table - table info.columnName - column name.chunkSize - chunk size.includedLowerBound - the previous chunk end value.SQLExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.