public class HBaseSerde extends Object
| Constructor and Description |
|---|
HBaseSerde(HBaseTableSchema hbaseSchema,
String nullStringLiteral) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.data.RowData |
convertToNewRow(org.apache.hadoop.hbase.client.Result result)
Converts HBase
Result into a new RowData instance. |
org.apache.flink.table.data.RowData |
convertToReusedRow(org.apache.hadoop.hbase.client.Result result)
Converts HBase
Result into a reused RowData instance. |
org.apache.flink.table.data.RowData |
convertToRow(org.apache.hadoop.hbase.client.Result result)
Deprecated.
Use
convertToReusedRow(Result) instead. |
org.apache.hadoop.hbase.client.Delete |
createDeleteMutation(org.apache.flink.table.data.RowData 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.table.data.RowData 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.
|
public HBaseSerde(HBaseTableSchema hbaseSchema, String nullStringLiteral)
@Nullable public org.apache.hadoop.hbase.client.Put createPutMutation(org.apache.flink.table.data.RowData row)
@Nullable public org.apache.hadoop.hbase.client.Delete createDeleteMutation(org.apache.flink.table.data.RowData row)
public org.apache.hadoop.hbase.client.Scan createScan()
public org.apache.hadoop.hbase.client.Get createGet(Object rowKey)
public org.apache.flink.table.data.RowData convertToNewRow(org.apache.hadoop.hbase.client.Result result)
Result into a new RowData instance.
Note: this method is thread-safe.
public org.apache.flink.table.data.RowData convertToReusedRow(org.apache.hadoop.hbase.client.Result result)
Result into a reused RowData instance.
Note: this method is NOT thread-safe.
@Deprecated public org.apache.flink.table.data.RowData convertToRow(org.apache.hadoop.hbase.client.Result result)
convertToReusedRow(Result) instead.Result into RowData.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.