Enum RexImpTable.NullAs
- All Implemented Interfaces:
Serializable
,Comparable<RexImpTable.NullAs>
,Constable
- Enclosing class:
RexImpTable
Strategy what an operator should return if one of its
arguments is null.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf one of the arguments is null, the function returns false.Return true if result is not null, false if result is null.Return false if result is not null, true if result is null.It is not possible for any of the arguments to be null.The most common policy among the SQL built-in operators.If one of the arguments is null, the function returns true. -
Method Summary
Modifier and TypeMethodDescriptionhandle
(Expression x) Adapts an expression with "normal" result to one that adheres to this particular policy.static RexImpTable.NullAs
of
(boolean nullable) static RexImpTable.NullAs
Returns the enum constant of this type with the specified name.static RexImpTable.NullAs[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NULL
The most common policy among the SQL built-in operators. If one of the arguments is null, returns null. -
FALSE
If one of the arguments is null, the function returns false. Example:IS NOT NULL
. -
TRUE
If one of the arguments is null, the function returns true. Example:IS NULL
. -
NOT_POSSIBLE
It is not possible for any of the arguments to be null. If the argument type is nullable, the enclosing code will already have performed a not-null check. This may allow the operator implementor to generate a more efficient implementation, for example, by avoiding boxing or unboxing. -
IS_NULL
Return false if result is not null, true if result is null. -
IS_NOT_NULL
Return true if result is not null, false if result is null.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
-
handle
Adapts an expression with "normal" result to one that adheres to this particular policy.
-