Package org.apache.flink.connector.jdbc
Class JdbcRowOutputFormat.JdbcOutputFormatBuilder
- java.lang.Object
-
- org.apache.flink.connector.jdbc.JdbcRowOutputFormat.JdbcOutputFormatBuilder
-
- Enclosing class:
- JdbcRowOutputFormat
public static class JdbcRowOutputFormat.JdbcOutputFormatBuilder extends Object
Builder forJdbcRowOutputFormat.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcConnectionOptionsbuildConnectionOptions()JdbcRowOutputFormatfinish()Finalizes the configuration and checks validity.JdbcRowOutputFormat.JdbcOutputFormatBuildersetBatchSize(int batchSize)JdbcRowOutputFormat.JdbcOutputFormatBuildersetDBUrl(String dbURL)JdbcRowOutputFormat.JdbcOutputFormatBuildersetDrivername(String drivername)JdbcRowOutputFormat.JdbcOutputFormatBuildersetPassword(String password)JdbcRowOutputFormat.JdbcOutputFormatBuildersetQuery(String query)JdbcRowOutputFormat.JdbcOutputFormatBuildersetSqlTypes(int[] typesArray)JdbcRowOutputFormat.JdbcOutputFormatBuildersetUsername(String username)
-
-
-
Method Detail
-
setUsername
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setUsername(String username)
-
setPassword
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setPassword(String password)
-
setDrivername
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setDrivername(String drivername)
-
setDBUrl
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setDBUrl(String dbURL)
-
setQuery
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setQuery(String query)
-
setBatchSize
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setBatchSize(int batchSize)
-
setSqlTypes
public JdbcRowOutputFormat.JdbcOutputFormatBuilder setSqlTypes(int[] typesArray)
-
finish
public JdbcRowOutputFormat finish()
Finalizes the configuration and checks validity.- Returns:
- Configured JdbcOutputFormat
-
buildConnectionOptions
public JdbcConnectionOptions buildConnectionOptions()
-
-