Class AsyncVectorSearchRunner

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,​org.apache.flink.table.data.RowData>

    public class AsyncVectorSearchRunner
    extends AbstractAsyncFunctionRunner<org.apache.flink.table.data.RowData>
    Async function runner for AsyncVectorSearchFunction, which takes the generated function, instantiates it, and then calls its lifecycle methods.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncVectorSearchRunner​(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,​org.apache.flink.table.data.RowData>> generatedFetcher, boolean isLeftOuterJoin, int asyncBufferCapacity, int searchTableFieldCount)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void asyncInvoke​(org.apache.flink.table.data.RowData input, org.apache.flink.streaming.api.functions.async.ResultFuture<org.apache.flink.table.data.RowData> resultFuture)  
      void open​(org.apache.flink.api.common.functions.OpenContext openContext)  
      • Methods inherited from class org.apache.flink.streaming.api.functions.async.RichAsyncFunction

        setRuntimeContext
      • Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

        getIterationRuntimeContext, getRuntimeContext
      • Methods inherited from interface org.apache.flink.streaming.api.functions.async.AsyncFunction

        timeout
    • Constructor Detail

      • AsyncVectorSearchRunner

        public AsyncVectorSearchRunner​(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,​org.apache.flink.table.data.RowData>> generatedFetcher,
                                       boolean isLeftOuterJoin,
                                       int asyncBufferCapacity,
                                       int searchTableFieldCount)
    • Method Detail

      • open

        public void open​(org.apache.flink.api.common.functions.OpenContext openContext)
                  throws Exception
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class AbstractAsyncFunctionRunner<org.apache.flink.table.data.RowData>
        Throws:
        Exception
      • asyncInvoke

        public void asyncInvoke​(org.apache.flink.table.data.RowData input,
                                org.apache.flink.streaming.api.functions.async.ResultFuture<org.apache.flink.table.data.RowData> resultFuture)
                         throws Exception
        Specified by:
        asyncInvoke in interface org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,​org.apache.flink.table.data.RowData>
        Specified by:
        asyncInvoke in class org.apache.flink.streaming.api.functions.async.RichAsyncFunction<org.apache.flink.table.data.RowData,​org.apache.flink.table.data.RowData>
        Throws:
        Exception