Class AggregateFunctions
java.lang.Object
io.github.torand.fastersql.function.aggregate.AggregateFunctions
Provides factory methods for aggregate functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Avgavg(Expression expression) Creates the average aggregate of an expression.static CountAllcount()Creates the count aggregate of all rows.static Countcount(Expression expression) Creates the count aggregate of an expression.static Maxmax(Expression expression) Creates the maximum aggregate of an expression.static Minmin(Expression expression) Creates the minimum aggregate of an expression.static Sumsum(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.
-