@Internal public class DefaultExpressionEvaluator extends Object implements SpecializedFunction.ExpressionEvaluator
SpecializedFunction.ExpressionEvaluator
.Constructor and Description |
---|
DefaultExpressionEvaluator(GeneratedFunction<RichFunction> generatedClass,
Class<?> returnClass,
Class<?>[] argClasses,
String expressionSummary) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the runtime implementation for expression evaluation.
|
MethodHandle |
open(FunctionContext context)
Creates and initializes runtime implementation for expression evaluation.
|
String |
toString() |
public DefaultExpressionEvaluator(GeneratedFunction<RichFunction> generatedClass, Class<?> returnClass, Class<?>[] argClasses, String expressionSummary)
public MethodHandle open(FunctionContext context)
SpecializedFunction.ExpressionEvaluator
MethodHandle
should be stored in a transient variable and can be invoked via
MethodHandle.invokeExact(Object...)
using the conversion classes previously
defined via the passed DataType
s.
This method should be called in UserDefinedFunction.open(FunctionContext)
.
open
in interface SpecializedFunction.ExpressionEvaluator
public void close()
SpecializedFunction.ExpressionEvaluator
This method should be called in UserDefinedFunction.close()
.
close
in interface SpecializedFunction.ExpressionEvaluator
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.