@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(HBaseTableSchema hbaseTableSchema,
HBaseOptions hbaseOptions,
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) |
HBaseOptions |
getHBaseOptions() |
HBaseTableSchema |
getHBaseTableSchema() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getRecordType() |
org.apache.flink.table.api.TableSchema |
getTableSchema() |
HBaseWriteOptions |
getWriteOptions() |
void |
setIsAppendOnly(Boolean isAppendOnly) |
void |
setKeyFields(String[] keys) |
public HBaseUpsertTableSink(HBaseTableSchema hbaseTableSchema, HBaseOptions hbaseOptions, 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 HBaseTableSchema getHBaseTableSchema()
@VisibleForTesting public HBaseOptions getHBaseOptions()
@VisibleForTesting public HBaseWriteOptions getWriteOptions()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.