wuchong commented on a change in pull request #9045: [FLINK-12955][hbase]
Support LookupableTableSource for HBase
URL: https://github.com/apache/flink/pull/9045#discussion_r301619861
##########
File path:
flink-connectors/flink-hbase/src/main/java/org/apache/flink/addons/hbase/HBaseTableSource.java
##########
@@ -90,7 +94,16 @@ private HBaseTableSource(Configuration conf, String
tableName, TableSchema table
* @param clazz the data type of the qualifier
*/
public void addColumn(String family, String qualifier, Class<?> clazz) {
- this.hBaseSchema.addColumn(family, qualifier, clazz);
+ this.hbaseSchema.addColumn(family, qualifier, clazz);
+ }
+
+ /**
+ * Sets row key information in the table schema.
+ * @param rowKeyName the row key field name
+ * @param clazz the data type of the row key
+ */
+ public void setRowKey(String rowKeyName, Class<?> clazz) {
Review comment:
This method is a public API to let users have a rowkey in schema.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services