Enum StandardFunctions
- java.lang.Object
-
- java.lang.Enum<StandardFunctions>
-
- com.amazonaws.athena.connector.lambda.domain.predicate.functions.StandardFunctions
-
- All Implemented Interfaces:
Serializable
,Comparable<StandardFunctions>
public enum StandardFunctions extends Enum<StandardFunctions>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_FUNCTION_NAME
Arithmetic addition.AND_FUNCTION_NAME
$and is a vararg function accepting boolean argumentsARRAY_CONSTRUCTOR_FUNCTION_NAME
$array creates instance ofType
DIVIDE_FUNCTION_NAME
Arithmetic division.EQUAL_OPERATOR_FUNCTION_NAME
$cast function result type is determined by theCall#getType()
Cast is nuanced and very connector specific.GREATER_THAN_OPERATOR_FUNCTION_NAME
GREATER_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
IN_PREDICATE_FUNCTION_NAME
$in(value, array)
returnstrue
when value is equal to an element of the array, otherwise returnsNULL
when comparing value to an element of the array returns an indeterminate result, otherwise returnsfalse
IS_DISTINCT_FROM_OPERATOR_FUNCTION_NAME
IS_NULL_FUNCTION_NAME
LESS_THAN_OPERATOR_FUNCTION_NAME
LESS_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
LIKE_PATTERN_FUNCTION_NAME
MODULUS_FUNCTION_NAME
Arithmetic modulus.MULTIPLY_FUNCTION_NAME
Arithmetic multiplication.NEGATE_FUNCTION_NAME
Arithmetic unary minus.NOT_EQUAL_OPERATOR_FUNCTION_NAME
NOT_FUNCTION_NAME
$not is a function accepting boolean argumentNULLIF_FUNCTION_NAME
$nullif is a function accepting two arguments.OR_FUNCTION_NAME
$or is a vararg function accepting boolean argumentsSUBTRACT_FUNCTION_NAME
Arithmetic subtraction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StandardFunctions
fromFunctionName(FunctionName functionName)
FunctionName
getFunctionName()
OperatorType
getOperatorType()
static StandardFunctions
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardFunctions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND_FUNCTION_NAME
public static final StandardFunctions AND_FUNCTION_NAME
$and is a vararg function accepting boolean arguments
-
OR_FUNCTION_NAME
public static final StandardFunctions OR_FUNCTION_NAME
$or is a vararg function accepting boolean arguments
-
NOT_FUNCTION_NAME
public static final StandardFunctions NOT_FUNCTION_NAME
$not is a function accepting boolean argument
-
IS_NULL_FUNCTION_NAME
public static final StandardFunctions IS_NULL_FUNCTION_NAME
-
NULLIF_FUNCTION_NAME
public static final StandardFunctions NULLIF_FUNCTION_NAME
$nullif is a function accepting two arguments. Returns null if both values are the same, otherwise returns the first value.
-
EQUAL_OPERATOR_FUNCTION_NAME
public static final StandardFunctions EQUAL_OPERATOR_FUNCTION_NAME
$cast function result type is determined by theCall#getType()
Cast is nuanced and very connector specific. We omit it for initial release.
-
NOT_EQUAL_OPERATOR_FUNCTION_NAME
public static final StandardFunctions NOT_EQUAL_OPERATOR_FUNCTION_NAME
-
LESS_THAN_OPERATOR_FUNCTION_NAME
public static final StandardFunctions LESS_THAN_OPERATOR_FUNCTION_NAME
-
LESS_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
public static final StandardFunctions LESS_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
-
GREATER_THAN_OPERATOR_FUNCTION_NAME
public static final StandardFunctions GREATER_THAN_OPERATOR_FUNCTION_NAME
-
GREATER_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
public static final StandardFunctions GREATER_THAN_OR_EQUAL_OPERATOR_FUNCTION_NAME
-
IS_DISTINCT_FROM_OPERATOR_FUNCTION_NAME
public static final StandardFunctions IS_DISTINCT_FROM_OPERATOR_FUNCTION_NAME
-
ADD_FUNCTION_NAME
public static final StandardFunctions ADD_FUNCTION_NAME
Arithmetic addition.
-
SUBTRACT_FUNCTION_NAME
public static final StandardFunctions SUBTRACT_FUNCTION_NAME
Arithmetic subtraction.
-
MULTIPLY_FUNCTION_NAME
public static final StandardFunctions MULTIPLY_FUNCTION_NAME
Arithmetic multiplication.
-
DIVIDE_FUNCTION_NAME
public static final StandardFunctions DIVIDE_FUNCTION_NAME
Arithmetic division.
-
MODULUS_FUNCTION_NAME
public static final StandardFunctions MODULUS_FUNCTION_NAME
Arithmetic modulus.
-
NEGATE_FUNCTION_NAME
public static final StandardFunctions NEGATE_FUNCTION_NAME
Arithmetic unary minus.
-
LIKE_PATTERN_FUNCTION_NAME
public static final StandardFunctions LIKE_PATTERN_FUNCTION_NAME
-
IN_PREDICATE_FUNCTION_NAME
public static final StandardFunctions IN_PREDICATE_FUNCTION_NAME
$in(value, array)
returnstrue
when value is equal to an element of the array, otherwise returnsNULL
when comparing value to an element of the array returns an indeterminate result, otherwise returnsfalse
-
ARRAY_CONSTRUCTOR_FUNCTION_NAME
public static final StandardFunctions ARRAY_CONSTRUCTOR_FUNCTION_NAME
$array creates instance ofType
-
-
Method Detail
-
values
public static StandardFunctions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardFunctions c : StandardFunctions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardFunctions 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 nameNullPointerException
- if the argument is null
-
getFunctionName
public FunctionName getFunctionName()
-
getOperatorType
public OperatorType getOperatorType()
-
fromFunctionName
public static StandardFunctions fromFunctionName(FunctionName functionName)
-
-