public class SqlSpecialOperator extends SqlOperator
Modifier and Type | Class and Description |
---|---|
class |
SqlSpecialOperator.ReduceResult
|
static interface |
SqlSpecialOperator.TokenSequence
List of tokens: the input to a parser.
|
kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlSpecialOperator(java.lang.String name,
SqlKind kind) |
SqlSpecialOperator(java.lang.String name,
SqlKind kind,
int prec) |
SqlSpecialOperator(java.lang.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.
|
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, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, needsSpace, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperands
public SqlSpecialOperator(java.lang.String name, SqlKind kind)
public SqlSpecialOperator(java.lang.String name, SqlKind kind, int prec)
public SqlSpecialOperator(java.lang.String name, SqlKind kind, int prec, boolean leftAssoc, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker)
public SqlSyntax getSyntax()
SqlOperator
getSyntax
in class SqlOperator
public 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
SqlNode
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.