public class RetryableAsyncLookupFunctionDelegator extends AsyncLookupFunction
AsyncLookupFunction
to handle retries.Constructor and Description |
---|
RetryableAsyncLookupFunctionDelegator(AsyncLookupFunction userLookupFunction,
ResultRetryStrategy retryStrategy) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Collection<RowData>> |
asyncLookup(RowData keyRow)
Asynchronously lookup rows matching the lookup keys.
|
void |
close()
Tear-down method for user-defined function.
|
void |
open(FunctionContext context)
Setup method for user-defined function.
|
eval
getKind, getTypeInference
functionIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic, supportsConstantFolding
public RetryableAsyncLookupFunctionDelegator(@Nonnull AsyncLookupFunction userLookupFunction, @Nonnull ResultRetryStrategy retryStrategy)
public void open(FunctionContext context) throws Exception
UserDefinedFunction
open
in class UserDefinedFunction
Exception
public CompletableFuture<Collection<RowData>> asyncLookup(RowData keyRow)
AsyncLookupFunction
Please note that the returning collection of RowData shouldn't be reused across invocations.
asyncLookup
in class AsyncLookupFunction
keyRow
- - A RowData
that wraps lookup keys.public void close() throws Exception
UserDefinedFunction
close
in class UserDefinedFunction
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.