Package org.apache.calcite.sql.fun
Class SqlAvgAggFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.SqlAggFunction
-
- org.apache.calcite.sql.fun.SqlAvgAggFunction
-
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlAvgAggFunction.Subtype
Deprecated.
-
Field Summary
-
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
-
Constructor Summary
Constructors Constructor Description SqlAvgAggFunction(java.lang.String name, SqlKind kind)
SqlAvgAggFunction(RelDataType type, SqlAvgAggFunction.Subtype subtype)
Deprecated.SqlAvgAggFunction(SqlKind kind)
Creates a SqlAvgAggFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SqlAvgAggFunction.Subtype
getSubtype()
Deprecated.-
Methods inherited from class org.apache.calcite.sql.SqlAggFunction
allowsFilter, getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
-
Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
-
-
-
Constructor Detail
-
SqlAvgAggFunction
public SqlAvgAggFunction(SqlKind kind)
Creates a SqlAvgAggFunction.
-
SqlAvgAggFunction
SqlAvgAggFunction(java.lang.String name, SqlKind kind)
-
SqlAvgAggFunction
@Deprecated public SqlAvgAggFunction(RelDataType type, SqlAvgAggFunction.Subtype subtype)
Deprecated.
-
-
Method Detail
-
getSubtype
@Deprecated public SqlAvgAggFunction.Subtype getSubtype()
Deprecated.Returns the specific function, e.g. AVG or STDDEV_POP.- Returns:
- Subtype
-
-