Enum Class FunctionType

java.lang.Object
java.lang.Enum<FunctionType>
org.apache.gravitino.function.FunctionType
All Implemented Interfaces:
Serializable, Comparable<FunctionType>, Constable

@Evolving public enum FunctionType extends Enum<FunctionType>
Function type supported by Gravitino.
  • Enum Constant Details

    • SCALAR

      public static final FunctionType SCALAR
      Scalar function.
    • AGGREGATE

      public static final FunctionType AGGREGATE
      Aggregate function.
    • TABLE

      public static final FunctionType TABLE
      Table-valued function.
  • Method Details

    • values

      public static FunctionType[] 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 FunctionType 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
    • fromString

      public static FunctionType fromString(String type)
      Parse the function type from a string value.
      Parameters:
      type - the string to parse.
      Returns:
      the parsed FunctionType.
      Throws:
      IllegalArgumentException - if the value cannot be parsed.
    • typeName

      public String typeName()
      Returns:
      the canonical string representation used by APIs.