public class SqlNewOperator extends SqlPrefixOperator
new specification
such as
NEW UDT(1, 2)
. When used in an SqlCall, SqlNewOperator takes a
single operand, which is an invocation of the constructor method; but when
used in a RexCall, the operands are the initial values to be used for the new
instance.kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlNewOperator() |
Modifier and Type | Method and Description |
---|---|
boolean |
requiresDecimalExpansion()
Method to check if call requires expansion when it has decimal operands.
|
SqlNode |
rewriteCall(SqlValidator validator,
SqlCall call)
Rewrites a call to this operator.
|
adjustType, getMonotonicity, getSignatureTemplate, getSyntax, validRexOperands
acceptCall, acceptCall, 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, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresOrder, requiresOver, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands
public SqlNode rewriteCall(SqlValidator validator, SqlCall call)
SqlOperator
rewriteCall
in class SqlOperator
validator
- Validatorcall
- Call to be rewrittenpublic boolean requiresDecimalExpansion()
SqlOperator
requiresDecimalExpansion
in class SqlOperator
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.