Class AsyncCorrelateRunner
- 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.correlate.async.AsyncCorrelateRunner
-
- 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 AsyncCorrelateRunner extends org.apache.flink.streaming.api.functions.async.RichAsyncFunction<org.apache.flink.table.data.RowData,org.apache.flink.table.data.RowData>Async function runner forAsyncTableFunction. It invokes the UDF for each of the input rows, joining the responses with the input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncCorrelateRunner(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,Object>> generatedFetcher, DataStructureConverter<org.apache.flink.table.data.RowData,Object> fetcherConverter)
-
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
-
-
-
-
Constructor Detail
-
AsyncCorrelateRunner
public AsyncCorrelateRunner(GeneratedFunction<org.apache.flink.streaming.api.functions.async.AsyncFunction<org.apache.flink.table.data.RowData,Object>> generatedFetcher, DataStructureConverter<org.apache.flink.table.data.RowData,Object> fetcherConverter)
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.functions.OpenContext openContext) throws Exception- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
openin classorg.apache.flink.api.common.functions.AbstractRichFunction- 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:
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>- Throws:
Exception
-
-