public abstract class AbstractJDBCOutputFormat<T>
extends org.apache.flink.api.common.io.RichOutputFormat<T>
Row,
DriverManager,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
protected String |
dbURL |
| Constructor and Description |
|---|
AbstractJDBCOutputFormat(String username,
String password,
String drivername,
String dbURL) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeDbConnection() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
protected void |
establishConnection() |
getRuntimeContext, setRuntimeContextprotected final String dbURL
protected transient Connection connection
public void configure(org.apache.flink.configuration.Configuration parameters)
protected void establishConnection()
throws SQLException,
ClassNotFoundException
SQLExceptionClassNotFoundExceptionprotected void closeDbConnection()
throws IOException
IOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.