Class AggregateFunctions
java.lang.Object
io.github.torand.fastersql.function.aggregate.AggregateFunctions
Provides factory methods for aggregate functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Avg
avg
(Expression expression) Creates the average aggregate of an expression.static CountAll
count()
Creates the count aggregate of all rows.static Count
count
(Expression expression) Creates the count aggregate of an expression.static Max
max
(Expression expression) Creates the maximum aggregate of an expression.static Min
min
(Expression expression) Creates the minimum aggregate of an expression.static Sum
sum
(Expression expression) Creates the sum aggregate of an expression.
-
Method Details
-
max
Creates the maximum aggregate of an expression.- Parameters:
expression
- the expression.- Returns:
- the aggregate function.
-
min
Creates the minimum aggregate of an expression.- Parameters:
expression
- the expression.- Returns:
- the aggregate function.
-
count
Creates the count aggregate of an expression.- Parameters:
expression
- the expression.- Returns:
- the aggregate function.
-
count
Creates the count aggregate of all rows.- Returns:
- the aggregate function.
-
sum
Creates the sum aggregate of an expression.- Parameters:
expression
- the expression.- Returns:
- the aggregate function.
-
avg
Creates the average aggregate of an expression.- Parameters:
expression
- the expression.- Returns:
- the aggregate function.
-