/** * Returns an aggregation to calculate the integer average of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT AVG(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the average over all supplied values */ public static <Key, Value> Aggregation<Key, Value, Integer> integerAvg() { return new AggregationAdapter(new IntegerAvgAggregation<Key, Value>()); }
/** * Returns an aggregation to calculate the integer average of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT AVG(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the average over all supplied values */ public static <Key, Value> Aggregation<Key, Value, Integer> integerAvg() { return new AggregationAdapter(new IntegerAvgAggregation<Key, Value>()); }