Package org.apache.flink.table.functions
Interface SpecializedFunction.ExpressionEvaluator
- All Superinterfaces:
Serializable
- Enclosing interface:
- SpecializedFunction
@PublicEvolving
public static interface SpecializedFunction.ExpressionEvaluator
extends Serializable
Serializable factory that can be passed into a
UserDefinedFunction for evaluating
previously defined expression during runtime.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Closes the runtime implementation for expression evaluation.open(FunctionContext context) Creates and initializes runtime implementation for expression evaluation.
-
Method Details
-
open
Creates and initializes runtime implementation for expression evaluation. The returnedMethodHandleshould be stored in a transient variable and can be invoked viaMethodHandle.invokeExact(Object...)using the conversion classes previously defined via the passedDataTypes.This method should be called in
UserDefinedFunction.open(FunctionContext). -
close
default void close()Closes the runtime implementation for expression evaluation. It performs clean up work.This method should be called in
UserDefinedFunction.close().
-