Package org.apache.calcite.rex
Enum RexSimplify.SafeRexVisitor
- java.lang.Object
-
- java.lang.Enum<RexSimplify.SafeRexVisitor>
-
- org.apache.calcite.rex.RexSimplify.SafeRexVisitor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RexSimplify.SafeRexVisitor>
,RexVisitor<java.lang.Boolean>
- Enclosing class:
- RexSimplify
static enum RexSimplify.SafeRexVisitor extends java.lang.Enum<RexSimplify.SafeRexVisitor> implements RexVisitor<java.lang.Boolean>
Decides whether it is safe to flatten the given case part into AND/ORs
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
SafeRexVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RexSimplify.SafeRexVisitor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RexSimplify.SafeRexVisitor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.java.lang.Boolean
visitCall(RexCall call)
java.lang.Boolean
visitCorrelVariable(RexCorrelVariable correlVariable)
java.lang.Boolean
visitDynamicParam(RexDynamicParam dynamicParam)
java.lang.Boolean
visitFieldAccess(RexFieldAccess fieldAccess)
java.lang.Boolean
visitInputRef(RexInputRef inputRef)
java.lang.Boolean
visitLiteral(RexLiteral literal)
java.lang.Boolean
visitLocalRef(RexLocalRef localRef)
java.lang.Boolean
visitOver(RexOver over)
java.lang.Boolean
visitPatternFieldRef(RexPatternFieldRef fieldRef)
java.lang.Boolean
visitRangeRef(RexRangeRef rangeRef)
java.lang.Boolean
visitSubQuery(RexSubQuery subQuery)
java.lang.Boolean
visitTableInputRef(RexTableInputRef fieldRef)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final RexSimplify.SafeRexVisitor INSTANCE
-
-
Field Detail
-
safeOps
private final java.util.Set<SqlKind> safeOps
-
-
Method Detail
-
values
public static RexSimplify.SafeRexVisitor[] 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 (RexSimplify.SafeRexVisitor c : RexSimplify.SafeRexVisitor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RexSimplify.SafeRexVisitor 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
-
visitInputRef
public java.lang.Boolean visitInputRef(RexInputRef inputRef)
- Specified by:
visitInputRef
in interfaceRexVisitor<java.lang.Boolean>
-
visitLocalRef
public java.lang.Boolean visitLocalRef(RexLocalRef localRef)
- Specified by:
visitLocalRef
in interfaceRexVisitor<java.lang.Boolean>
-
visitLiteral
public java.lang.Boolean visitLiteral(RexLiteral literal)
- Specified by:
visitLiteral
in interfaceRexVisitor<java.lang.Boolean>
-
visitCall
public java.lang.Boolean visitCall(RexCall call)
- Specified by:
visitCall
in interfaceRexVisitor<java.lang.Boolean>
-
visitOver
public java.lang.Boolean visitOver(RexOver over)
- Specified by:
visitOver
in interfaceRexVisitor<java.lang.Boolean>
-
visitCorrelVariable
public java.lang.Boolean visitCorrelVariable(RexCorrelVariable correlVariable)
- Specified by:
visitCorrelVariable
in interfaceRexVisitor<java.lang.Boolean>
-
visitDynamicParam
public java.lang.Boolean visitDynamicParam(RexDynamicParam dynamicParam)
- Specified by:
visitDynamicParam
in interfaceRexVisitor<java.lang.Boolean>
-
visitRangeRef
public java.lang.Boolean visitRangeRef(RexRangeRef rangeRef)
- Specified by:
visitRangeRef
in interfaceRexVisitor<java.lang.Boolean>
-
visitFieldAccess
public java.lang.Boolean visitFieldAccess(RexFieldAccess fieldAccess)
- Specified by:
visitFieldAccess
in interfaceRexVisitor<java.lang.Boolean>
-
visitSubQuery
public java.lang.Boolean visitSubQuery(RexSubQuery subQuery)
- Specified by:
visitSubQuery
in interfaceRexVisitor<java.lang.Boolean>
-
visitTableInputRef
public java.lang.Boolean visitTableInputRef(RexTableInputRef fieldRef)
- Specified by:
visitTableInputRef
in interfaceRexVisitor<java.lang.Boolean>
-
visitPatternFieldRef
public java.lang.Boolean visitPatternFieldRef(RexPatternFieldRef fieldRef)
- Specified by:
visitPatternFieldRef
in interfaceRexVisitor<java.lang.Boolean>
-
-