Package io.trino.operator.scalar
Class ChoicesSpecializedSqlScalarFunction
java.lang.Object
io.trino.operator.scalar.ChoicesSpecializedSqlScalarFunction
- All Implemented Interfaces:
SpecializedSqlScalarFunction
public final class ChoicesSpecializedSqlScalarFunction
extends Object
implements SpecializedSqlScalarFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, MethodHandle methodHandle) ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, MethodHandle methodHandle, Optional<MethodHandle> instanceFactory) ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, List<Class<?>> lambdaInterfaces, MethodHandle methodHandle, Optional<MethodHandle> instanceFactory) ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, List<ChoicesSpecializedSqlScalarFunction.ScalarImplementationChoice> choices) Creates a ScalarFunctionImplementation consisting of one or more choices. -
Method Summary
Modifier and TypeMethodDescriptiongetScalarFunctionImplementation(InvocationConvention invocationConvention)
-
Constructor Details
-
ChoicesSpecializedSqlScalarFunction
public ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, MethodHandle methodHandle) -
ChoicesSpecializedSqlScalarFunction
public ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, MethodHandle methodHandle, Optional<MethodHandle> instanceFactory) -
ChoicesSpecializedSqlScalarFunction
public ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, InvocationConvention.InvocationReturnConvention returnConvention, List<InvocationConvention.InvocationArgumentConvention> argumentConventions, List<Class<?>> lambdaInterfaces, MethodHandle methodHandle, Optional<MethodHandle> instanceFactory) -
ChoicesSpecializedSqlScalarFunction
public ChoicesSpecializedSqlScalarFunction(BoundSignature boundSignature, List<ChoicesSpecializedSqlScalarFunction.ScalarImplementationChoice> choices) Creates a ScalarFunctionImplementation consisting of one or more choices.All choices must have the same SQL signature, and are equivalent in what they do. The first choice is the default choice, which is the one used for legacy access methods. The default choice must be usable under any context. (e.g. it must not use BLOCK_POSITION convention.)
- Parameters:
choices- the list of choices, ordered from generic to specific
-
-
Method Details
-
getChoices
-
getScalarFunctionImplementation
public ScalarFunctionImplementation getScalarFunctionImplementation(InvocationConvention invocationConvention) - Specified by:
getScalarFunctionImplementationin interfaceSpecializedSqlScalarFunction
-