Package org.apache.calcite.rel.rules
Class PushProjector.OperatorExprCondition
- java.lang.Object
-
- org.apache.calcite.rel.rules.PushProjector.OperatorExprCondition
-
- All Implemented Interfaces:
java.util.function.Predicate<RexNode>
,PushProjector.ExprCondition
- Enclosing class:
- PushProjector
class PushProjector.OperatorExprCondition extends java.lang.Object implements PushProjector.ExprCondition
An expression condition that evaluates to true if the expression is a call to one of a set of operators.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<SqlOperator>
operatorSet
-
Fields inherited from interface org.apache.calcite.rel.rules.PushProjector.ExprCondition
FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description OperatorExprCondition(java.lang.Iterable<? extends SqlOperator> operatorSet)
Creates an OperatorExprCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(RexNode expr)
Evaluates a condition for a given expression.
-
-
-
Field Detail
-
operatorSet
private final java.util.Set<SqlOperator> operatorSet
-
-
Constructor Detail
-
OperatorExprCondition
OperatorExprCondition(java.lang.Iterable<? extends SqlOperator> operatorSet)
Creates an OperatorExprCondition.- Parameters:
operatorSet
- Set of operators
-
-
Method Detail
-
test
public boolean test(RexNode expr)
Description copied from interface:PushProjector.ExprCondition
Evaluates a condition for a given expression.- Specified by:
test
in interfacejava.util.function.Predicate<RexNode>
- Specified by:
test
in interfacePushProjector.ExprCondition
- Parameters:
expr
- Expression- Returns:
- result of evaluating the condition
-
-