public abstract class JdbcAbstractSink<T> extends Object implements Sink<T>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION |
protected static String |
DELETE |
protected static String |
INSERT |
protected JdbcUtils.TableDefinition |
tableDefinition |
protected static String |
UPDATE |
| Constructor and Description |
|---|
JdbcAbstractSink() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bindValue(PreparedStatement statement,
org.apache.pulsar.functions.api.Record<T> message,
String action) |
void |
close() |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
void |
write(org.apache.pulsar.functions.api.Record<T> record) |
protected static final String ACTION
protected static final String INSERT
protected static final String UPDATE
protected static final String DELETE
protected JdbcUtils.TableDefinition tableDefinition
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic abstract void bindValue(PreparedStatement statement, org.apache.pulsar.functions.api.Record<T> message, String action) throws Exception
ExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.