Package org.apache.druid.math.expr
Enum Class ExprType
- All Implemented Interfaces:
Serializable,Comparable<ExprType>,Constable,TypeDescriptor
Base 'value' types of Druid expression language, all
Expr must evaluate to one of these types.-
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 TypeMethodDescriptionbooleanisArray()Value is an array of some otherTypeDescriptorbooleanScalar numeric primitive values.booleanScalar numeric and string values.static ExprTypeReturns the enum constant of this class with the specified name.static ExprType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOUBLE
-
LONG
-
STRING
-
ARRAY
-
COMPLEX
-
-
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
-
isNumeric
public boolean isNumeric()Description copied from interface:TypeDescriptorScalar numeric primitive values.- Specified by:
isNumericin interfaceTypeDescriptor- See Also:
-
isPrimitive
public boolean isPrimitive()Description copied from interface:TypeDescriptorScalar numeric and string values. This does not currently include complex types.- Specified by:
isPrimitivein interfaceTypeDescriptor- See Also:
-
isArray
public boolean isArray()Description copied from interface:TypeDescriptorValue is an array of some otherTypeDescriptor- Specified by:
isArrayin interfaceTypeDescriptor- See Also:
-