Package io.trino.spi.function
Enum Class InvocationConvention.InvocationArgumentConvention
java.lang.Object
java.lang.Enum<InvocationConvention.InvocationArgumentConvention>
io.trino.spi.function.InvocationConvention.InvocationArgumentConvention
- All Implemented Interfaces:
Serializable,Comparable<InvocationConvention.InvocationArgumentConvention>,Constable
- Enclosing class:
- InvocationConvention
public static enum InvocationConvention.InvocationArgumentConvention
extends Enum<InvocationConvention.InvocationArgumentConvention>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArgument is passed a Block followed by the integer position in the block.Argument is always an object type.Argument is a lambda function.Argument is passed in an InOut.Argument must not be a boxed type.Argument must not be a boxed type, and is always followed with a boolean argument to indicate if the sql value is null. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER_NULL
Argument must not be a boxed type. Argument will never be null. -
BOXED_NULLABLE
Argument is always an object type. An SQL null will be passed a Java null. -
NULL_FLAG
Argument must not be a boxed type, and is always followed with a boolean argument to indicate if the sql value is null. -
BLOCK_POSITION
Argument is passed a Block followed by the integer position in the block. The sql value may be null. -
IN_OUT
Argument is passed in an InOut. The sql value may be null. -
FUNCTION
Argument is a lambda function.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isNullable
public boolean isNullable() -
getParameterCount
public int getParameterCount()
-