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 passed a Block followed by the integer position in the block.Argument is always an object type.Argument is passed as a flat slice.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.Argument is passed a ValueBlock followed by the integer position in the block.Argument is passed a ValueBlock followed by the integer position in the block. -
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. -
BLOCK_POSITION_NOT_NULL
Argument is passed a Block followed by the integer position in the block. If the actual block position passed to the function argument is null, the results are undefined. -
VALUE_BLOCK_POSITION_NOT_NULL
Argument is passed a ValueBlock followed by the integer position in the block. The actual block parameter may be any subtype of ValueBlock, and the scalar function adapter will convert the parameter to ValueBlock. If the actual block position passed to the function argument is null, the results are undefined. -
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. -
VALUE_BLOCK_POSITION
Argument is passed a ValueBlock followed by the integer position in the block. The actual block parameter may be any subtype of ValueBlock, and the scalar function adapter will convert the parameter to ValueBlock. The sql value may be null. -
FLAT
Argument is passed as a flat slice. The sql value may not 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()
-