Class AsyncMLInferenceFunction<T,R>
- java.lang.Object
-
- com.codedstreams.otterstreams.sql.async.AsyncMLInferenceFunction<T,R>
-
- Type Parameters:
T- Input event typeR- Output enriched event type
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.streaming.api.functions.async.AsyncFunction<T,R>
public class AsyncMLInferenceFunction<T,R> extends Object implements org.apache.flink.streaming.api.functions.async.AsyncFunction<T,R>
Asynchronous ML inference function for Flink streams.- Since:
- 1.0.0
- Author:
- Nestor Martourez, Sr Software and Data Streaming Engineer @ CodedStreams
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncMLInferenceFunction(String modelName, Function<T,Map<String,Object>> featureExtractor, Function<InferenceResult,R> resultMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncInvoke(T input, org.apache.flink.streaming.api.functions.async.ResultFuture<R> resultFuture)
-