Package org.apache.calcite.sql.fun
Class SqlCountAggFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.SqlAggFunction
org.apache.calcite.sql.fun.SqlCountAggFunction
- Direct Known Subclasses:
- SqlRegrCountAggFunction
Definition of the SQL 
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.
- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructorsConstructorDescriptionSqlCountAggFunction(String name) SqlCountAggFunction(String name, SqlOperandTypeChecker sqlOperandTypeChecker) 
- 
Method SummaryModifier and TypeMethodDescriptionderiveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) Derives the type of a call to this operator.getParameterTypes(RelDataTypeFactory typeFactory) getReturnType(RelDataTypeFactory typeFactory) Gets rollup aggregation function.Returns the syntactic type of this operator, never null.<T> @Nullable TFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.Methods inherited from class org.apache.calcite.sql.SqlAggFunctionallowsFilter, allowsNullTreatment, getDistinctOptionality, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, validateCallMethods inherited from class org.apache.calcite.sql.SqlFunctiongetFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, unparse, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrapOrThrow
- 
Constructor Details- 
SqlCountAggFunction
- 
SqlCountAggFunction
 
- 
- 
Method Details- 
getSyntaxDescription copied from class:SqlOperatorReturns the syntactic type of this operator, never null.- Overrides:
- getSyntaxin class- SqlFunction
 
- 
getParameterTypes- Overrides:
- getParameterTypesin class- SqlAggFunction
 
- 
getReturnType- Overrides:
- getReturnTypein class- SqlAggFunction
 
- 
deriveTypeDescription copied from class:SqlOperatorDerives the type of a call to this operator.This 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.- Overrides:
- deriveTypein class- SqlFunction
- Parameters:
- validator- Validator
- scope- Scope of validation
- call- Call to this operator
- Returns:
- Type of call
 
- 
unwrapDescription copied from interface:WrapperFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.- Specified by:
- unwrapin interface- Wrapper
- Overrides:
- unwrapin class- SqlAggFunction
 
- 
getRollupDescription copied from class:SqlAggFunctionGets rollup aggregation function.- Overrides:
- getRollupin class- SqlAggFunction
 
 
-