Class RetryableLookupFunctionDelegator

  • All Implemented Interfaces:
    Serializable, org.apache.flink.table.functions.FunctionDefinition

    public class RetryableLookupFunctionDelegator
    extends org.apache.flink.table.functions.LookupFunction
    A delegator holds user's LookupFunction to handle retries.
    See Also:
    Serialized Form
    • Method Summary

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

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

        collect, finish, getKind, getParameterTypes, getResultType, getTypeInference, setCollector
      • Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction

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

        getRequirements, isDeterministic
    • Constructor Detail

      • RetryableLookupFunctionDelegator

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

      • lookup

        public Collection<org.apache.flink.table.data.RowData> lookup​(org.apache.flink.table.data.RowData keyRow)
                                                               throws IOException
        Specified by:
        lookup in class org.apache.flink.table.functions.LookupFunction
        Throws:
        IOException
      • 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
      • close

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