Class RetryableAsyncLookupFunctionDelegator
java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.AsyncTableFunction<org.apache.flink.table.data.RowData>
org.apache.flink.table.functions.AsyncLookupFunction
org.apache.flink.table.runtime.operators.join.lookup.RetryableAsyncLookupFunctionDelegator
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
public class RetryableAsyncLookupFunctionDelegator
extends org.apache.flink.table.functions.AsyncLookupFunction
A delegator holds user's
AsyncLookupFunction to handle retries.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRetryableAsyncLookupFunctionDelegator(org.apache.flink.table.functions.AsyncLookupFunction userLookupFunction, ResultRetryStrategy retryStrategy) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<Collection<org.apache.flink.table.data.RowData>>asyncLookup(org.apache.flink.table.data.RowData keyRow) voidclose()voidopen(org.apache.flink.table.functions.FunctionContext context) Methods inherited from class org.apache.flink.table.functions.AsyncLookupFunction
evalMethods inherited from class org.apache.flink.table.functions.AsyncTableFunction
getKind, getTypeInferenceMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
functionIdentifier, 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
-
RetryableAsyncLookupFunctionDelegator
public RetryableAsyncLookupFunctionDelegator(@Nonnull org.apache.flink.table.functions.AsyncLookupFunction userLookupFunction, @Nonnull ResultRetryStrategy retryStrategy)
-
-
Method Details
-
open
- Overrides:
openin classorg.apache.flink.table.functions.UserDefinedFunction- Throws:
Exception
-
asyncLookup
public CompletableFuture<Collection<org.apache.flink.table.data.RowData>> asyncLookup(org.apache.flink.table.data.RowData keyRow) - Specified by:
asyncLookupin classorg.apache.flink.table.functions.AsyncLookupFunction
-
close
- Overrides:
closein classorg.apache.flink.table.functions.UserDefinedFunction- Throws:
Exception
-