public class SqlSpecialOperator extends SqlOperator
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlSpecialOperator.ReduceResult
|
static interface |
SqlSpecialOperator.TokenSequence
List of tokens: the input to a parser.
|
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,
@Nullable SqlReturnTypeInference returnTypeInference,
@Nullable SqlOperandTypeInference operandTypeInference,
@Nullable SqlOperandTypeChecker operandTypeChecker) |
| Modifier and Type | Method and Description |
|---|---|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator, never null.
|
SqlSpecialOperator.ReduceResult |
reduceExpr(int ordinal,
SqlSpecialOperator.TokenSequence list)
Reduces a list of operators and arguments according to the rules of
precedence and associativity.
|
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperandspublic SqlSpecialOperator(String name, SqlKind kind, int prec, boolean leftAssoc, @Nullable SqlReturnTypeInference returnTypeInference, @Nullable SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandTypeChecker operandTypeChecker)
public SqlSyntax getSyntax()
SqlOperatorgetSyntax in class SqlOperatorpublic SqlSpecialOperator.ReduceResult reduceExpr(int ordinal, SqlSpecialOperator.TokenSequence 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-2022 Apache Software Foundation. All Rights Reserved.