Package io.trino.spi.function
Class ScalarFunctionAdapter
java.lang.Object
io.trino.spi.function.ScalarFunctionAdapter
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodHandleadapt(MethodHandle methodHandle, Type returnType, List<Type> actualArgumentTypes, InvocationConvention actualConvention, InvocationConvention expectedConvention) Adapt the method handle from the actual calling convention of a method be converted to the expected calling convention?static booleancanAdapt(InvocationConvention actualConvention, InvocationConvention expectedConvention) Can the actual calling convention of a method be converted to the expected calling convention?
-
Method Details
-
canAdapt
public static boolean canAdapt(InvocationConvention actualConvention, InvocationConvention expectedConvention) Can the actual calling convention of a method be converted to the expected calling convention? -
adapt
public static MethodHandle adapt(MethodHandle methodHandle, Type returnType, List<Type> actualArgumentTypes, InvocationConvention actualConvention, InvocationConvention expectedConvention) Adapt the method handle from the actual calling convention of a method be converted to the expected calling convention?
-