Enum Class OperatorType

java.lang.Object
java.lang.Enum<OperatorType>
io.trino.spi.function.OperatorType
All Implemented Interfaces:
Serializable, Comparable<OperatorType>, Constable

public enum OperatorType extends Enum<OperatorType>
  • Enum Constant Details

    • ADD

      public static final OperatorType ADD
    • SUBTRACT

      public static final OperatorType SUBTRACT
    • MULTIPLY

      public static final OperatorType MULTIPLY
    • DIVIDE

      public static final OperatorType DIVIDE
    • MODULUS

      public static final OperatorType MODULUS
    • NEGATION

      public static final OperatorType NEGATION
    • EQUAL

      public static final OperatorType EQUAL
    • COMPARISON_UNORDERED_LAST

      public static final OperatorType COMPARISON_UNORDERED_LAST
      Normal comparison operator, but unordered values such as NaN are placed after all normal values.
    • COMPARISON_UNORDERED_FIRST

      public static final OperatorType COMPARISON_UNORDERED_FIRST
      Normal comparison operator, but unordered values such as NaN are placed before all normal values.
    • LESS_THAN

      public static final OperatorType LESS_THAN
    • LESS_THAN_OR_EQUAL

      public static final OperatorType LESS_THAN_OR_EQUAL
    • CAST

      public static final OperatorType CAST
    • SUBSCRIPT

      public static final OperatorType SUBSCRIPT
    • HASH_CODE

      public static final OperatorType HASH_CODE
    • SATURATED_FLOOR_CAST

      public static final OperatorType SATURATED_FLOOR_CAST
    • IS_DISTINCT_FROM

      public static final OperatorType IS_DISTINCT_FROM
    • XX_HASH_64

      public static final OperatorType XX_HASH_64
    • INDETERMINATE

      public static final OperatorType INDETERMINATE
    • READ_VALUE

      public static final OperatorType READ_VALUE
  • Method Details

    • values

      public static OperatorType[] 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 OperatorType 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
    • getOperator

      public String getOperator()
    • getArgumentCount

      public int getArgumentCount()