@Internal public class HBaseUpsertTableSink extends Object implements org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>
UpsertStreamTableSink for HBase.| Constructor and Description |
|---|
HBaseUpsertTableSink(String tableName,
org.apache.flink.connector.hbase.util.HBaseTableSchema hbaseTableSchema,
org.apache.hadoop.conf.Configuration hconf,
org.apache.flink.connector.hbase.options.HBaseWriteOptions writeOptions) |
| Modifier and Type | Method and Description |
|---|---|
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) |
org.apache.flink.connector.hbase.util.HBaseTableSchema |
getHBaseTableSchema() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getRecordType() |
org.apache.flink.table.api.TableSchema |
getTableSchema() |
org.apache.flink.connector.hbase.options.HBaseWriteOptions |
getWriteOptions() |
void |
setIsAppendOnly(Boolean isAppendOnly) |
void |
setKeyFields(String[] keys) |
public HBaseUpsertTableSink(String tableName, org.apache.flink.connector.hbase.util.HBaseTableSchema hbaseTableSchema, org.apache.hadoop.conf.Configuration hconf, org.apache.flink.connector.hbase.options.HBaseWriteOptions writeOptions)
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.types.Row> getRecordType()
getRecordType in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public org.apache.flink.table.api.TableSchema getTableSchema()
getTableSchema 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.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 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>>@VisibleForTesting public org.apache.flink.connector.hbase.util.HBaseTableSchema getHBaseTableSchema()
@VisibleForTesting public org.apache.flink.connector.hbase.options.HBaseWriteOptions getWriteOptions()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.