Enum Class NullHandling

java.lang.Object
java.lang.Enum<NullHandling>
dev.frostlake.metastore.model.NullHandling
All Implemented Interfaces:
Serializable, Comparable<NullHandling>, Constable

public enum NullHandling extends Enum<NullHandling>
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).
  • Enum Constant Details

    • CALLED_ON_NULL_INPUT

      public static final NullHandling CALLED_ON_NULL_INPUT
    • RETURNS_NULL_ON_NULL_INPUT

      public static final NullHandling RETURNS_NULL_ON_NULL_INPUT
  • Method Details

    • values

      public static NullHandling[] 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

      public static NullHandling valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getSqlText

      public String getSqlText()
      The canonical SQL spelling used in DDL and SHOW output (e.g. "CALLED ON NULL INPUT").
    • fromString

      public static NullHandling fromString(String value)
      Parse a clause value case-insensitively (STRICT is a synonym); null/unrecognized → the default.