public static class JdbcConnectorOptions.Builder extends Object
JdbcConnectorOptions
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JdbcConnectorOptions |
build() |
JdbcConnectorOptions.Builder |
setClassLoader(ClassLoader classLoader)
optional, specifies the classloader to use in the planner for load the class in user jar.
|
JdbcConnectorOptions.Builder |
setConnectionCheckTimeoutSeconds(int connectionCheckTimeoutSeconds)
optional, connectionCheckTimeoutSeconds.
|
JdbcConnectorOptions.Builder |
setDBUrl(String dbURL)
required, JDBC DB url.
|
JdbcConnectorOptions.Builder |
setDialect(JdbcDialect dialect)
optional, Handle the SQL dialect of jdbc driver.
|
JdbcConnectorOptions.Builder |
setDriverName(String driverName)
optional, driver name, dialect has a default driver name, See
JdbcDialect.defaultDriverName() . |
JdbcConnectorOptions.Builder |
setParallelism(Integer parallelism) |
JdbcConnectorOptions.Builder |
setPassword(String password)
optional, password.
|
JdbcConnectorOptions.Builder |
setTableName(String tableName)
required, table name.
|
JdbcConnectorOptions.Builder |
setUsername(String username)
optional, user name.
|
public JdbcConnectorOptions.Builder setClassLoader(ClassLoader classLoader)
By default, this is configured using Thread.currentThread().getContextClassLoader()
.
Modify the ClassLoader
only if you know what you're doing.
public JdbcConnectorOptions.Builder setTableName(String tableName)
public JdbcConnectorOptions.Builder setUsername(String username)
public JdbcConnectorOptions.Builder setPassword(String password)
public JdbcConnectorOptions.Builder setConnectionCheckTimeoutSeconds(int connectionCheckTimeoutSeconds)
public JdbcConnectorOptions.Builder setDriverName(String driverName)
JdbcDialect.defaultDriverName()
.public JdbcConnectorOptions.Builder setDBUrl(String dbURL)
public JdbcConnectorOptions.Builder setDialect(JdbcDialect dialect)
JdbcDialectLoader.load(java.lang.String, java.lang.ClassLoader)
from DB url.public JdbcConnectorOptions.Builder setParallelism(Integer parallelism)
public JdbcConnectorOptions build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.