Package org.apache.flink.table.functions
Interface SpecializedFunction.ExpressionEvaluator
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultExpressionEvaluator
- Enclosing interface:
- SpecializedFunction
@PublicEvolving public static interface SpecializedFunction.ExpressionEvaluator extends Serializable
Serializable factory that can be passed into aUserDefinedFunction
for evaluating previously defined expression during runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
Closes the runtime implementation for expression evaluation.MethodHandle
open(FunctionContext context)
Creates and initializes runtime implementation for expression evaluation.
-
-
-
Method Detail
-
open
MethodHandle open(FunctionContext context)
Creates and initializes runtime implementation for expression evaluation. The returnedMethodHandle
should be stored in a transient variable and can be invoked viaMethodHandle.invokeExact(Object...)
using the conversion classes previously defined via the passedDataType
s.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()
.
-
-