Enum ExprType

java.lang.Object
java.lang.Enum<ExprType>
org.apache.druid.math.expr.ExprType
All Implemented Interfaces:
Serializable, Comparable<ExprType>, TypeDescriptor

@Immutable public enum ExprType extends Enum<ExprType> implements TypeDescriptor
Base 'value' types of Druid expression language, all Expr must evaluate to one of these types.
  • Enum Constant Details

    • DOUBLE

      public static final ExprType DOUBLE
    • LONG

      public static final ExprType LONG
    • STRING

      public static final ExprType STRING
    • ARRAY

      public static final ExprType ARRAY
    • COMPLEX

      public static final ExprType COMPLEX
  • Method Details

    • values

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

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

      public boolean isNumeric()
      Description copied from interface: TypeDescriptor
      Scalar numeric primitive values.
      Specified by:
      isNumeric in interface TypeDescriptor
      See Also:
    • isPrimitive

      public boolean isPrimitive()
      Description copied from interface: TypeDescriptor
      Scalar numeric and string values. This does not currently include complex types.
      Specified by:
      isPrimitive in interface TypeDescriptor
      See Also:
    • isArray

      public boolean isArray()
      Description copied from interface: TypeDescriptor
      Value is an array of some other TypeDescriptor
      Specified by:
      isArray in interface TypeDescriptor
      See Also: