Package dev.frostlake.metastore.model
Enum Class NullHandling
- All Implemented Interfaces:
Serializable,Comparable<NullHandling>,Constable
A UDF's NULL-handling behavior:
CALLED_ON_NULL_INPUT (the default — the body runs even for NULL
arguments) or RETURNS_NULL_ON_NULL_INPUT (short-circuits to NULL; STRICT is its synonym).
getSqlText() is the canonical DDL/SHOW spelling (with spaces, not the enum's underscores).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NullHandlingfromString(String value) Parse a clause value case-insensitively (STRICTis a synonym); null/unrecognized → the default.The canonical SQL spelling used in DDL and SHOW output (e.g.static NullHandlingReturns the enum constant of this class with the specified name.static NullHandling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CALLED_ON_NULL_INPUT
-
RETURNS_NULL_ON_NULL_INPUT
-
-
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
-
getSqlText
The canonical SQL spelling used in DDL and SHOW output (e.g."CALLED ON NULL INPUT"). -
fromString
Parse a clause value case-insensitively (STRICTis a synonym); null/unrecognized → the default.
-