@PublicEvolving public abstract class LookupFunction extends TableFunction<RowData>
TableFunction
for synchronously lookup rows matching the lookup keys
from external system.
The output type of this table function is fixed as RowData
.
Constructor and Description |
---|
LookupFunction() |
Modifier and Type | Method and Description |
---|---|
void |
eval(Object... keys)
Invoke
lookup(org.apache.flink.table.data.RowData) and handle exceptions. |
abstract Collection<RowData> |
lookup(RowData keyRow)
Synchronously lookup rows matching the lookup keys.
|
collect, finish, getKind, getParameterTypes, getResultType, getTypeInference, setCollector
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic, supportsConstantFolding
public abstract Collection<RowData> lookup(RowData keyRow) throws IOException
Please note that the returning collection of RowData shouldn't be reused across invocations.
keyRow
- - A RowData
that wraps lookup keys.IOException
public final void eval(Object... keys)
lookup(org.apache.flink.table.data.RowData)
and handle exceptions.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.