org.eigenbase.rel.rules
Class PushProjector.OperatorExprCondition

java.lang.Object
  extended by org.eigenbase.rel.rules.PushProjector.OperatorExprCondition
All Implemented Interfaces:
PushProjector.ExprCondition
Enclosing class:
PushProjector

public static class PushProjector.OperatorExprCondition
extends 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
private  Set<SqlOperator> operatorSet
           
 
Fields inherited from interface org.eigenbase.rel.rules.PushProjector.ExprCondition
FALSE
 
Constructor Summary
PushProjector.OperatorExprCondition(Set<SqlOperator> operatorSet)
          Creates an OperatorExprCondition.
 
Method Summary
 boolean test(RexNode expr)
          Evaluates a condition for a given expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operatorSet

private final Set<SqlOperator> operatorSet
Constructor Detail

PushProjector.OperatorExprCondition

public PushProjector.OperatorExprCondition(Set<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 interface PushProjector.ExprCondition
Parameters:
expr - Expression
Returns:
result of evaluating the condition