public class JdbcUpsertTableSink extends Object implements org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>
UpsertStreamTableSink for JDBC.| Modifier and Type | Class and Description |
|---|---|
static class |
JdbcUpsertTableSink.Builder
Builder for a
JdbcUpsertTableSink. |
| Modifier and Type | Method and Description |
|---|---|
static JdbcUpsertTableSink.Builder |
builder() |
org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,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.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream) |
boolean |
equals(Object o) |
String[] |
getFieldNames() |
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
getFieldTypes() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> |
getOutputType() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getRecordType() |
void |
setIsAppendOnly(Boolean isAppendOnly) |
void |
setKeyFields(String[] keys) |
public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream)
consumeDataStream in interface org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public void setKeyFields(String[] keys)
setKeyFields in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public void setIsAppendOnly(Boolean isAppendOnly)
setIsAppendOnly in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> getOutputType()
getOutputType in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>getOutputType in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getRecordType()
getRecordType in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public String[] getFieldNames()
getFieldNames in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
getFieldTypes in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
configure in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public static JdbcUpsertTableSink.Builder builder()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.