public static class JdbcBatchingOutputFormat.Builder extends Object
JdbcBatchingOutputFormat.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JdbcBatchingOutputFormat<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>,org.apache.flink.types.Row,JdbcBatchStatementExecutor<org.apache.flink.types.Row>> |
build()
Finalizes the configuration and checks validity.
|
JdbcBatchingOutputFormat.Builder |
setFieldNames(String[] fieldNames)
required, field names of this jdbc sink.
|
JdbcBatchingOutputFormat.Builder |
setFieldTypes(int[] fieldTypes)
required, field types of this jdbc sink.
|
JdbcBatchingOutputFormat.Builder |
setFlushIntervalMills(long flushIntervalMills)
optional, flush interval mills, over this time, asynchronous threads will flush data.
|
JdbcBatchingOutputFormat.Builder |
setFlushMaxSize(int flushMaxSize)
optional, flush max size (includes all append, upsert and delete records), over this
number of records, will flush data.
|
JdbcBatchingOutputFormat.Builder |
setKeyFields(String[] keyFields)
required, upsert unique keys.
|
JdbcBatchingOutputFormat.Builder |
setMaxRetryTimes(int maxRetryTimes)
optional, max retry times for jdbc connector.
|
JdbcBatchingOutputFormat.Builder |
setOptions(JdbcOptions options)
required, jdbc options.
|
public JdbcBatchingOutputFormat.Builder setOptions(JdbcOptions options)
public JdbcBatchingOutputFormat.Builder setFieldNames(String[] fieldNames)
public JdbcBatchingOutputFormat.Builder setKeyFields(String[] keyFields)
public JdbcBatchingOutputFormat.Builder setFieldTypes(int[] fieldTypes)
public JdbcBatchingOutputFormat.Builder setFlushMaxSize(int flushMaxSize)
public JdbcBatchingOutputFormat.Builder setFlushIntervalMills(long flushIntervalMills)
public JdbcBatchingOutputFormat.Builder setMaxRetryTimes(int maxRetryTimes)
public JdbcBatchingOutputFormat<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>,org.apache.flink.types.Row,JdbcBatchStatementExecutor<org.apache.flink.types.Row>> build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.