public class JDBCAppendTableSinkBuilder extends Object
Constructor and Description |
---|
JDBCAppendTableSinkBuilder() |
Modifier and Type | Method and Description |
---|---|
JDBCAppendTableSink |
build()
Finalizes the configuration and checks validity.
|
JDBCAppendTableSinkBuilder |
setBatchSize(int batchSize)
Specify the size of the batch.
|
JDBCAppendTableSinkBuilder |
setDBUrl(String dbURL)
Specify the URL of the JDBC database.
|
JDBCAppendTableSinkBuilder |
setDrivername(String drivername)
Specify the name of the JDBC driver that will be used.
|
JDBCAppendTableSinkBuilder |
setParameterTypes(int... types)
Specify the type of the rows that the sink will be accepting.
|
JDBCAppendTableSinkBuilder |
setParameterTypes(TypeInformation<?>... types)
Specify the type of the rows that the sink will be accepting.
|
JDBCAppendTableSinkBuilder |
setPassword(String password)
Specify the password of the JDBC connection.
|
JDBCAppendTableSinkBuilder |
setQuery(String query)
Specify the query that the sink will execute.
|
JDBCAppendTableSinkBuilder |
setUsername(String username)
Specify the username of the JDBC connection.
|
public JDBCAppendTableSinkBuilder setUsername(String username)
username
- the username of the JDBC connection.public JDBCAppendTableSinkBuilder setPassword(String password)
password
- the password of the JDBC connection.public JDBCAppendTableSinkBuilder setDrivername(String drivername)
drivername
- the name of the JDBC driver.public JDBCAppendTableSinkBuilder setDBUrl(String dbURL)
dbURL
- the URL of the database, whose format is specified by the
corresponding JDBC driver.public JDBCAppendTableSinkBuilder setQuery(String query)
query
- The query to be executed by the sink.JDBCOutputFormat.JDBCOutputFormatBuilder.setQuery(String)
public JDBCAppendTableSinkBuilder setBatchSize(int batchSize)
batchSize
- the size of batchpublic JDBCAppendTableSinkBuilder setParameterTypes(TypeInformation<?>... types)
types
- the type of each fieldpublic JDBCAppendTableSinkBuilder setParameterTypes(int... types)
types
- the type of each field defined by Types
.public JDBCAppendTableSink build()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.