public class SqlCountAggFunction extends SqlAggFunction
COUNT aggregation function.
COUNT is an aggregator which returns the number of rows which
have gone into it. With one argument (or more), it returns the number of rows
for which that argument (or all) is not null.
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlCountAggFunction() |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator.
|
List<RelDataType> |
getParameterTypes(RelDataTypeFactory typeFactory) |
RelDataType |
getReturnType(RelDataTypeFactory typeFactory) |
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator, never null.
|
isAggregator, isQuantifierAllowed, validateCallgetFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, unparse, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandspublic SqlSyntax getSyntax()
SqlOperatorgetSyntax in class SqlFunctionpublic List<RelDataType> getParameterTypes(RelDataTypeFactory typeFactory)
public RelDataType getReturnType(RelDataTypeFactory typeFactory)
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
SqlOperatorThis method is an intrinsic part of the validation process so, unlike
SqlOperator.inferReturnType(org.apache.calcite.sql.SqlOperatorBinding), specific operators would not typically override
this method.
deriveType in class SqlFunctionvalidator - Validatorscope - Scope of validationcall - Call to this operatorCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.