@Internal public class HBaseLookupFunction extends TableFunction<Row>
Row
.Constructor and Description |
---|
HBaseLookupFunction(Configuration configuration,
String hTableName,
HBaseTableSchema hbaseTableSchema) |
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() |
TypeInformation<Row> |
getResultType()
Returns the result type of the evaluation method.
|
void |
open(FunctionContext context)
Setup method for user-defined function.
|
collect, getKind, getParameterTypes, getTypeInference, setCollector
functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic
public HBaseLookupFunction(Configuration configuration, String hTableName, HBaseTableSchema hbaseTableSchema)
public void eval(Object rowKey) throws IOException
rowKey
- the lookup key. Currently only support single rowkey.IOException
public TypeInformation<Row> getResultType()
TableFunction
getResultType
in class TableFunction<Row>
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.