public final class TableBufferReducedStatementExecutor extends Object implements JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData>
| 构造器和说明 |
|---|
TableBufferReducedStatementExecutor(JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData> upsertExecutor,
JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData> deleteExecutor,
java.util.function.Function<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> keyExtractor,
java.util.function.Function<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> valueTransform) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addToBatch(org.apache.flink.table.data.RowData record) |
void |
closeStatements()
Close JDBC related statements.
|
void |
executeBatch()
Submits a batch of commands to the database for execution.
|
void |
prepareStatements(Connection connection)
Create statements from connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyed, simplepublic TableBufferReducedStatementExecutor(JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData> upsertExecutor, JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData> deleteExecutor, java.util.function.Function<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> keyExtractor, java.util.function.Function<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData> valueTransform)
public void prepareStatements(Connection connection) throws SQLException
JdbcBatchStatementExecutorprepareStatements 在接口中 JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData>SQLExceptionpublic void addToBatch(org.apache.flink.table.data.RowData record)
throws SQLException
addToBatch 在接口中 JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData>SQLExceptionpublic void executeBatch()
throws SQLException
JdbcBatchStatementExecutorexecuteBatch 在接口中 JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData>SQLExceptionpublic void closeStatements()
throws SQLException
JdbcBatchStatementExecutorcloseStatements 在接口中 JdbcBatchStatementExecutor<org.apache.flink.table.data.RowData>SQLExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.