SUM returns Long when applied to state-fields of integral types (other than
BigInteger); Double when applied to state-fields of floating point
types; BigInteger when applied to state-fields of type BigInteger; and
BigDecimal when applied to state-fields of type BigDecimal. If
SUM, AVG, MAX, or MIN is used, and there are no values to which the
aggregate function can be applied, the result of the aggregate function is NULL. If
COUNT is used, and there are no values to which COUNT can be applied, the
result of the aggregate function is 0.
expression ::= SUM([DISTINCT] state_field_path_expression)| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| SumFunction | back to summary |
|---|---|
| public SumFunction(AbstractExpression parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |