public static class JDBCUpsertTableSink.Builder extends Object
JDBCUpsertTableSink
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JDBCUpsertTableSink |
build() |
JDBCUpsertTableSink.Builder |
setFlushIntervalMills(long flushIntervalMills)
optional, flush interval mills, over this time, asynchronous threads will flush data.
|
JDBCUpsertTableSink.Builder |
setFlushMaxSize(int flushMaxSize)
optional, flush max size (includes all append, upsert and delete records),
over this number of records, will flush data.
|
JDBCUpsertTableSink.Builder |
setMaxRetryTimes(int maxRetryTimes)
optional, max retry times for jdbc connector.
|
JDBCUpsertTableSink.Builder |
setOptions(JDBCOptions options)
required, jdbc options.
|
JDBCUpsertTableSink.Builder |
setTableSchema(TableSchema schema)
required, table schema of this table source.
|
public JDBCUpsertTableSink.Builder setTableSchema(TableSchema schema)
public JDBCUpsertTableSink.Builder setOptions(JDBCOptions options)
public JDBCUpsertTableSink.Builder setFlushMaxSize(int flushMaxSize)
public JDBCUpsertTableSink.Builder setFlushIntervalMills(long flushIntervalMills)
public JDBCUpsertTableSink.Builder setMaxRetryTimes(int maxRetryTimes)
public JDBCUpsertTableSink build()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.