public class SqlSpecialOperator extends SqlOperator
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlSpecialOperator(String name,
SqlKind kind) |
SqlSpecialOperator(String name,
SqlKind kind,
int prec) |
SqlSpecialOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker) |
| Modifier and Type | Method and Description |
|---|---|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator, never null.
|
int |
reduceExpr(int ordinal,
List<Object> list)
Reduces a list of operators and arguments according to the rules of
precedence and associativity.
|
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperandspublic SqlSpecialOperator(String name, SqlKind kind, int prec, boolean leftAssoc, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker)
public SqlSyntax getSyntax()
SqlOperatorgetSyntax in class SqlOperatorpublic int reduceExpr(int ordinal,
List<Object> list)
The default implementation throws
UnsupportedOperationException.
ordinal - indicating the ordinal of the current operator in the list
on which a possible reduction can be madelist - List of alternating
SqlParserUtil.ToTreeListItem and
SqlNodeCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.