@PublicEvolving public abstract class AsyncLookupFunction extends AsyncTableFunction<RowData>
AsyncTableFunction for asynchronously lookup rows matching the lookup
keys from external system.
The output type of this table function is fixed as RowData.
| Constructor and Description |
|---|
AsyncLookupFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract CompletableFuture<Collection<RowData>> |
asyncLookup(RowData keyRow)
Asynchronously lookup rows matching the lookup keys.
|
void |
eval(CompletableFuture<Collection<RowData>> future,
Object... keys)
Invokes
asyncLookup(org.apache.flink.table.data.RowData) and chains futures. |
getKind, getTypeInferenceclose, functionIdentifier, open, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRequirements, isDeterministicpublic abstract CompletableFuture<Collection<RowData>> asyncLookup(RowData keyRow)
Please note that the returning collection of RowData shouldn't be reused across invocations.
keyRow - - A RowData that wraps lookup keys.public final void eval(CompletableFuture<Collection<RowData>> future, Object... keys)
asyncLookup(org.apache.flink.table.data.RowData) and chains futures.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.