Package io.trino.spi.function
Class ScalarFunctionAdapter
java.lang.Object
io.trino.spi.function.ScalarFunctionAdapter
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionScalarFunctionAdapter(ScalarFunctionAdapter.NullAdaptationPolicy nullAdaptationPolicy) -
Method Summary
Modifier and TypeMethodDescriptionadapt(MethodHandle methodHandle, 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?booleancanAdapt(InvocationConvention actualConvention, InvocationConvention expectedConvention) Can the actual calling convention of a method be converted to the expected calling convention?
-
Constructor Details
-
ScalarFunctionAdapter
-
-
Method Details
-
canAdapt
public boolean canAdapt(InvocationConvention actualConvention, InvocationConvention expectedConvention) Can the actual calling convention of a method be converted to the expected calling convention? -
adapt
public MethodHandle adapt(MethodHandle methodHandle, 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?
-