public class HiveDialect extends Object implements JdbcDialect
log| 构造器和说明 |
|---|
HiveDialect() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
dialectName()
Get the name of jdbc dialect.
|
JdbcConnectionProvider |
getJdbcConnectionProvider(JdbcConnectionConfig jdbcConnectionConfig) |
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, creatPreparedStatement, defaultParameter, extractTableName, getDeleteStatement, getFieldIde, getInsertIntoStatement, 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 ResultSetMetaData getResultSetMetaData(Connection conn, String query) throws SQLException
getResultSetMetaData 在接口中 JdbcDialectSQLExceptionpublic JdbcConnectionProvider getJdbcConnectionProvider(JdbcConnectionConfig jdbcConnectionConfig)
getJdbcConnectionProvider 在接口中 JdbcDialectCopyright © 2024 The Apache Software Foundation. All rights reserved.