@Internal public class HBaseReadWriteHelper extends Object
Scan and Get
for scanning or lookuping a HBase table, and create a Put and Delete for writing
to HBase table, and supports converting the HBase Result to Flink Row.| Constructor and Description |
|---|
HBaseReadWriteHelper(HBaseTableSchema hbaseTableSchema) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.Delete |
createDeleteMutation(org.apache.flink.types.Row row)
Returns an instance of Delete that remove record from HBase table.
|
org.apache.hadoop.hbase.client.Get |
createGet(Object rowKey)
Returns an instance of Get that retrieves the matches records from the HBase table.
|
org.apache.hadoop.hbase.client.Put |
createPutMutation(org.apache.flink.types.Row row)
Returns an instance of Put that writes record to HBase table.
|
org.apache.hadoop.hbase.client.Scan |
createScan()
Returns an instance of Scan that retrieves the required subset of records from the HBase
table.
|
org.apache.flink.types.Row |
parseToRow(org.apache.hadoop.hbase.client.Result result)
Parses HBase
Result into Row. |
org.apache.flink.types.Row |
parseToRow(org.apache.hadoop.hbase.client.Result result,
Object rowKey)
Parses HBase
Result into Row. |
public HBaseReadWriteHelper(HBaseTableSchema hbaseTableSchema)
public org.apache.hadoop.hbase.client.Get createGet(Object rowKey)
public org.apache.hadoop.hbase.client.Scan createScan()
public org.apache.flink.types.Row parseToRow(org.apache.hadoop.hbase.client.Result result)
Result into Row.public org.apache.flink.types.Row parseToRow(org.apache.hadoop.hbase.client.Result result,
Object rowKey)
Result into Row.public org.apache.hadoop.hbase.client.Put createPutMutation(org.apache.flink.types.Row row)
public org.apache.hadoop.hbase.client.Delete createDeleteMutation(org.apache.flink.types.Row row)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.