org.eigenbase.sql
Class SqlPostfixOperator
java.lang.Object
org.eigenbase.sql.SqlOperator
org.eigenbase.sql.SqlPostfixOperator
public class SqlPostfixOperator
- extends SqlOperator
A postfix unary operator.
Methods inherited from class org.eigenbase.sql.SqlOperator |
acceptCall, acceptCall, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands |
SqlPostfixOperator
public SqlPostfixOperator(String name,
SqlKind kind,
int prec,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
getSyntax
public SqlSyntax getSyntax()
- Description copied from class:
SqlOperator
- Returns the syntactic type of this operator.
- Specified by:
getSyntax
in class SqlOperator
getSignatureTemplate
public String getSignatureTemplate(int operandsCount)
- Description copied from class:
SqlOperator
- Returns a template describing how the operator signature is to be built.
E.g for the binary + operator the template looks like "{1} {0} {2}" {0}
is the operator, subsequent numbers are operands.
- Overrides:
getSignatureTemplate
in class SqlOperator
- Parameters:
operandsCount
- is used with functions that can take a variable
number of operands
- Returns:
- signature template, or null to indicate that a default template
will suffice
adjustType
protected RelDataType adjustType(SqlValidator validator,
SqlCall call,
RelDataType type)
- Description copied from class:
SqlOperator
- Validates and determines coercibility and resulting collation name of
binary operator if needed.
- Overrides:
adjustType
in class SqlOperator