@Internal public class HBaseRowDataLookupFunction extends TableFunction<RowData>
RowData
.Constructor and Description |
---|
HBaseRowDataLookupFunction(Configuration configuration,
String hTableName,
HBaseTableSchema hbaseTableSchema,
String nullStringLiteral) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Tear-down method for user-defined function.
|
void |
eval(Object rowKey)
The invoke entry point of lookup function.
|
String |
getHTableName() |
void |
open(FunctionContext context)
Setup method for user-defined function.
|
collect, getKind, getParameterTypes, getResultType, getTypeInference, setCollector
functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic
public HBaseRowDataLookupFunction(Configuration configuration, String hTableName, HBaseTableSchema hbaseTableSchema, String nullStringLiteral)
public void eval(Object rowKey) throws IOException
rowKey
- the lookup key. Currently only support single rowkey.IOException
public void open(FunctionContext context)
UserDefinedFunction
open
in class UserDefinedFunction
public void close()
UserDefinedFunction
close
in class UserDefinedFunction
@VisibleForTesting public String getHTableName()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.