public class SqlDatetimeSubtractionOperator extends SqlSpecialOperator
"(" <datetime> "-" <datetime> ")"
<interval qualifier>
This operator is special since it needs to hold the
additional interval qualifier specification, when in SqlCall form.
In RexNode form, it has only two parameters,
and the return type describes the desired type of interval.
SqlSpecialOperator.ReduceResult, SqlSpecialOperator.TokenSequencekind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlDatetimeSubtractionOperator() |
| Modifier and Type | Method and Description |
|---|---|
SqlMonotonicity |
getMonotonicity(SqlOperatorBinding call)
Returns whether a call to this operator is monotonic.
|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator, never null.
|
void |
unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec)
Writes a SQL representation of a call to this operator to a writer,
including parentheses if the operators on either side are of greater
precedence.
|
reduceExpracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperandspublic SqlSyntax getSyntax()
SqlOperatorgetSyntax in class SqlSpecialOperatorpublic void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
SqlOperatorThe default implementation of this method delegates to
SqlSyntax.unparse(org.apache.calcite.sql.SqlWriter, org.apache.calcite.sql.SqlOperator, org.apache.calcite.sql.SqlCall, int, int).
unparse in class SqlOperatorpublic SqlMonotonicity getMonotonicity(SqlOperatorBinding call)
SqlOperatorDefault implementation returns SqlMonotonicity.NOT_MONOTONIC.
getMonotonicity in class SqlOperatorcall - Call to this operator with particular arguments and information
about the monotonicity of the argumentsCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.