Class AsyncFunctionRunner
- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.async.RichAsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
-
- org.apache.flink.table.runtime.operators.calc.async.AsyncFunctionRunner
-
- 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 AsyncFunctionRunner extends org.apache.flink.streaming.api.functions.async.RichAsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Async function runner forAsyncScalarFunction, which takes the generated function, instantiates it, and then calls its lifecycle methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncFunctionRunner(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>> generatedFetcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncInvoke(org.apache.flink.table.data.RowData input, org.apache.flink.streaming.api.functions.async.ResultFuture<org.apache.flink.table.data.RowData> resultFuture)voidclose()voidopen(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, open
-
-
-
-
Constructor Detail
-
AsyncFunctionRunner
public AsyncFunctionRunner(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>> generatedFetcher)
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.functions.OpenContext openContext) throws Exception- 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)- Specified by:
asyncInvokein interfaceorg.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>- Specified by:
asyncInvokein classorg.apache.flink.streaming.api.functions.async.RichAsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>
-
-