@Internal
public class HBaseLookupFunction
extends org.apache.flink.table.functions.TableFunction<org.apache.flink.types.Row>
Row.| Constructor and Description |
|---|
HBaseLookupFunction(org.apache.hadoop.conf.Configuration configuration,
String hTableName,
HBaseTableSchema hbaseTableSchema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
eval(Object rowKey)
The invoke entry point of lookup function.
|
String |
getHTableName() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getResultType() |
void |
open(org.apache.flink.table.functions.FunctionContext context) |
collect, getKind, getParameterTypes, getTypeInference, setCollectorfunctionIdentifier, toStringpublic HBaseLookupFunction(org.apache.hadoop.conf.Configuration configuration,
String hTableName,
HBaseTableSchema hbaseTableSchema)
public void eval(Object rowKey) throws IOException
rowKey - the lookup key. Currently only support single rowkey.IOExceptionpublic org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getResultType()
getResultType in class org.apache.flink.table.functions.TableFunction<org.apache.flink.types.Row>public void open(org.apache.flink.table.functions.FunctionContext context)
open in class org.apache.flink.table.functions.UserDefinedFunctionpublic void close()
close in class org.apache.flink.table.functions.UserDefinedFunction@VisibleForTesting public String getHTableName()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.