Class MLPredictScalarFunction
- java.lang.Object
-
- org.apache.flink.table.functions.UserDefinedFunction
-
- org.apache.flink.table.functions.ScalarFunction
-
- com.codedstreams.otterstreams.sql.udf.MLPredictScalarFunction
-
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
public class MLPredictScalarFunction extends org.apache.flink.table.functions.ScalarFunctionFlink SQL Scalar Function for ML model inference. Usage: SELECT ML_PREDICT('model-name', '{"feature1": 1.0}') FROM table- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MLPredictScalarFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Doubleeval(String modelName, String featuresJson)-
Methods inherited from class org.apache.flink.table.functions.ScalarFunction
getKind, getParameterTypes, getResultType, getTypeInference
-
Methods inherited from class org.apache.flink.table.functions.UserDefinedFunction
functionIdentifier, open, toString
-
-