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(String name) |
SqlCountAggFunction(String name,
SqlOperandTypeChecker sqlOperandTypeChecker) |
| 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) |
SqlAggFunction |
getRollup()
Gets rollup aggregation function.
|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator, never null.
|
<T> T |
unwrap(Class<T> clazz)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
allowsFilter, allowsNullTreatment, getDistinctOptionality, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, validateCallgetFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, unparse, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsclone, finalize, getClass, notify, notifyAll, wait, wait, waitmaybeUnwrap, unwrapOrThrowpublic SqlCountAggFunction(String name)
public SqlCountAggFunction(String name, SqlOperandTypeChecker sqlOperandTypeChecker)
public SqlSyntax getSyntax()
SqlOperatorgetSyntax in class SqlFunctionpublic List<RelDataType> getParameterTypes(RelDataTypeFactory typeFactory)
getParameterTypes in class SqlAggFunctionpublic RelDataType getReturnType(RelDataTypeFactory typeFactory)
getReturnType in class SqlAggFunctionpublic 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 operatorpublic <T> T unwrap(Class<T> clazz)
Wrapperunwrap in interface Wrapperunwrap in class SqlAggFunctionpublic SqlAggFunction getRollup()
SqlAggFunctiongetRollup in class SqlAggFunctionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.