Class 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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CompletableFuture<Collection<org.apache.flink.table.data.RowData>> asyncLookup​(org.apache.flink.table.data.RowData keyRow)  
      void close()  
      void open​(org.apache.flink.table.functions.FunctionContext context)  
      • Methods inherited from class org.apache.flink.table.functions.AsyncLookupFunction

        eval
      • Methods inherited from class org.apache.flink.table.functions.AsyncTableFunction

        getKind, getTypeInference
      • Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction

        functionIdentifier, toString
      • Methods inherited from interface org.apache.flink.table.functions.FunctionDefinition

        getRequirements, isDeterministic, supportsConstantFolding
    • Constructor Detail

      • RetryableAsyncLookupFunctionDelegator

        public RetryableAsyncLookupFunctionDelegator​(@Nonnull
                                                     org.apache.flink.table.functions.AsyncLookupFunction userLookupFunction,
                                                     @Nonnull
                                                     ResultRetryStrategy retryStrategy)
    • Method Detail

      • open

        public void open​(org.apache.flink.table.functions.FunctionContext context)
                  throws Exception
        Overrides:
        open in class org.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:
        asyncLookup in class org.apache.flink.table.functions.AsyncLookupFunction
      • close

        public void close()
                   throws Exception
        Overrides:
        close in class org.apache.flink.table.functions.UserDefinedFunction
        Throws:
        Exception