public class LegacyMutationConverter extends Object implements HBaseMutationConverter<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>
HBaseTableSource.| Constructor and Description |
|---|
LegacyMutationConverter(HBaseTableSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.Mutation |
convertToMutation(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> record)
Converts the input record into HBase
Mutation. |
void |
open()
Initialization method for the function.
|
public LegacyMutationConverter(HBaseTableSchema schema)
public void open()
HBaseMutationConverteropen in interface HBaseMutationConverter<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.hadoop.hbase.client.Mutation convertToMutation(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> record)
HBaseMutationConverterMutation. A mutation can be a Put or
Delete.convertToMutation in interface HBaseMutationConverter<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.