Package org.apache.flink.table.functions
Class LookupFunction
java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.TableFunction<RowData>
org.apache.flink.table.functions.LookupFunction
- All Implemented Interfaces:
Serializable,FunctionDefinition
A wrapper class of
TableFunction for synchronously lookup rows matching the lookup keys
from external system.
The output type of this table function is fixed as RowData.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidInvokelookup(org.apache.flink.table.data.RowData)and handle exceptions.abstract Collection<RowData>Synchronously lookup rows matching the lookup keys.Methods inherited from class org.apache.flink.table.functions.TableFunction
collect, finish, getKind, getParameterTypes, getResultType, getTypeInference, setCollectorMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.functions.FunctionDefinition
getRequirements, isDeterministic, supportsConstantFolding
-
Constructor Details
-
LookupFunction
public LookupFunction()
-
-
Method Details
-
lookup
Synchronously lookup rows matching the lookup keys.Please note that the returning collection of RowData shouldn't be reused across invocations.
- Parameters:
keyRow- - ARowDatathat wraps lookup keys.- Returns:
- A collection of all matching rows in the lookup table.
- Throws:
IOException
-
eval
Invokelookup(org.apache.flink.table.data.RowData)and handle exceptions.
-