Package org.apache.calcite.rel.rules
Enum ReduceExpressionsRule.ReducibleExprLocator.Constancy
- java.lang.Object
-
- java.lang.Enum<ReduceExpressionsRule.ReducibleExprLocator.Constancy>
-
- org.apache.calcite.rel.rules.ReduceExpressionsRule.ReducibleExprLocator.Constancy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReduceExpressionsRule.ReducibleExprLocator.Constancy>
- Enclosing class:
- ReduceExpressionsRule.ReducibleExprLocator
static enum ReduceExpressionsRule.ReducibleExprLocator.Constancy extends java.lang.Enum<ReduceExpressionsRule.ReducibleExprLocator.Constancy>
Whether an expression is constant, and if so, whether it can be reduced to a simpler constant.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IRREDUCIBLE_CONSTANT
NON_CONSTANT
REDUCIBLE_CONSTANT
-
Constructor Summary
Constructors Modifier Constructor Description private
Constancy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReduceExpressionsRule.ReducibleExprLocator.Constancy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReduceExpressionsRule.ReducibleExprLocator.Constancy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NON_CONSTANT
public static final ReduceExpressionsRule.ReducibleExprLocator.Constancy NON_CONSTANT
-
REDUCIBLE_CONSTANT
public static final ReduceExpressionsRule.ReducibleExprLocator.Constancy REDUCIBLE_CONSTANT
-
IRREDUCIBLE_CONSTANT
public static final ReduceExpressionsRule.ReducibleExprLocator.Constancy IRREDUCIBLE_CONSTANT
-
-
Method Detail
-
values
public static ReduceExpressionsRule.ReducibleExprLocator.Constancy[] 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 (ReduceExpressionsRule.ReducibleExprLocator.Constancy c : ReduceExpressionsRule.ReducibleExprLocator.Constancy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReduceExpressionsRule.ReducibleExprLocator.Constancy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-