public class HiveSqlSumAggFunction extends org.apache.calcite.sql.SqlAggFunction implements CanAggregateDistinct
Sum
is an aggregator which returns the sum 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.Constructor and Description |
---|
HiveSqlSumAggFunction(boolean isDistinct,
org.apache.calcite.sql.type.SqlReturnTypeInference returnTypeInference,
org.apache.calcite.sql.type.SqlOperandTypeInference operandTypeInference,
org.apache.calcite.sql.type.SqlOperandTypeChecker operandTypeChecker) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDistinct() |
<T> T |
unwrap(Class<T> clazz) |
getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresOrder, requiresOver, validateCall
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
public HiveSqlSumAggFunction(boolean isDistinct, org.apache.calcite.sql.type.SqlReturnTypeInference returnTypeInference, org.apache.calcite.sql.type.SqlOperandTypeInference operandTypeInference, org.apache.calcite.sql.type.SqlOperandTypeChecker operandTypeChecker)
public boolean isDistinct()
isDistinct
in interface CanAggregateDistinct
public <T> T unwrap(Class<T> clazz)
unwrap
in interface org.apache.calcite.plan.Context
unwrap
in class org.apache.calcite.sql.SqlAggFunction
Copyright © 2016 The Apache Software Foundation. All rights reserved.