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