QueryNumAggregation<T extends num?> extension

Aggregation operations for number queries.

on

Methods

average() double

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Calculates the average of all values. This only works for numeric values.
averageAsync() Future<double>

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Calculates the average of all values. This only works for numeric values.
max() → T?

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Finds the largest value matching the query.
maxAsync() Future<T?>

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Finds the largest value matching the query.
min() → T?

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Finds the smallest value matching the query. Null values are considered smaller than all other values.
minAsync() Future<T?>

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Finds the smallest value matching the query. Null values are considered smaller than all other values.
sum() → T

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Calculates the sum of all values. This only works for numeric values.
sumAsync() Future<T>

Available on DatabaseUniverseQuery<T?>, provided by the QueryNumAggregation extension

Calculates the sum of all values. This only works for numeric values.