public class JDBCAppendTableSink extends Object implements org.apache.flink.table.sinks.AppendStreamTableSink<org.apache.flink.types.Row>, org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>
The mechanisms of Flink guarantees delivering messages at-least-once to this sink (if
checkpointing is enabled). However, one common use case is to run idempotent queries
(e.g., REPLACE or INSERT OVERWRITE) to upsert into the database and
achieve exactly-once semantic.
| 限定符和类型 | 方法和说明 |
|---|---|
static JDBCAppendTableSinkBuilder |
builder() |
org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row> |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes) |
org.apache.flink.streaming.api.datastream.DataStreamSink<?> |
consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream) |
void |
emitDataSet(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet) |
void |
emitDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream) |
String[] |
getFieldNames() |
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
getFieldTypes() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getOutputType() |
public static JDBCAppendTableSinkBuilder builder()
public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
consumeDataStream 在接口中 org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>public void emitDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.types.Row> dataStream)
emitDataStream 在接口中 org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.types.Row>public void emitDataSet(org.apache.flink.api.java.DataSet<org.apache.flink.types.Row> dataSet)
emitDataSet 在接口中 org.apache.flink.table.sinks.BatchTableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getOutputType()
getOutputType 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public String[] getFieldNames()
getFieldNames 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
getFieldTypes 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>public org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
configure 在接口中 org.apache.flink.table.sinks.TableSink<org.apache.flink.types.Row>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.