public class SqlAvgAggFunction extends SqlAggFunction
Avg is an aggregator which returns the average of the values
which go into it. It has precisely one argument of numeric type
(int, long, float,
double), and the result is the same type.| Modifier and Type | Class and Description |
|---|---|
static class |
SqlAvgAggFunction.Subtype
Sub-type of aggregate function.
|
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlAvgAggFunction(RelDataType type,
SqlAvgAggFunction.Subtype subtype)
Creates a SqlAvgAggFunction
|
| Modifier and Type | Method and Description |
|---|---|
List<RelDataType> |
getParameterTypes(RelDataTypeFactory typeFactory) |
RelDataType |
getReturnType(RelDataTypeFactory typeFactory) |
SqlAvgAggFunction.Subtype |
getSubtype()
Returns the specific function, e.g.
|
isAggregator, isQuantifierAllowed, validateCallderiveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, 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 SqlAvgAggFunction(RelDataType type, SqlAvgAggFunction.Subtype subtype)
type - Data typesubtype - Specific function, e.g. AVG or STDDEV_POPpublic List<RelDataType> getParameterTypes(RelDataTypeFactory typeFactory)
public RelDataType getReturnType(RelDataTypeFactory typeFactory)
public SqlAvgAggFunction.Subtype getSubtype()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.