org.eigenbase.sql.fun
Class SqlMonotonicBinaryOperator
java.lang.Object
org.eigenbase.sql.SqlOperator
org.eigenbase.sql.SqlBinaryOperator
org.eigenbase.sql.fun.SqlMonotonicBinaryOperator
public class SqlMonotonicBinaryOperator
- extends SqlBinaryOperator
Base class for binary operators such as addition, subtraction, and
multiplication which are monotonic for the patterns m op c
and
c op m
where m is any monotonic expression and c is a constant.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/fun/SqlMonotonicBinaryOperator.java#8 $
- Author:
- John V. Sichi
Methods inherited from class org.eigenbase.sql.SqlOperator |
acceptCall, acceptCall, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands |
SqlMonotonicBinaryOperator
public SqlMonotonicBinaryOperator(String name,
SqlKind kind,
int prec,
boolean isLeftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
getMonotonicity
public SqlMonotonicity getMonotonicity(SqlCall call,
SqlValidatorScope scope)
- Description copied from class:
SqlOperator
- Returns whether this operator is monotonic.
Default implementation returns SqlMonotonicity.NotMonotonic
.
- Overrides:
getMonotonicity
in class SqlBinaryOperator
- Parameters:
call
- Call to this operatorscope
- Scope in which the call occurs
assertMonotonicity
private void assertMonotonicity(String s,
SqlMonotonicity monotonicity)