/** * Returns an aggregation to calculate the double sum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT SUM(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the sum over all supplied values */ public static <Key, Value> Aggregation<Key, Double, Double> doubleSum() { return new AggregationAdapter(new DoubleSumAggregation<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>()); }
/** * Returns an aggregation to find the maximum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMax() { return new AggregationAdapter(new ComparableMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the minimum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMin() { return new AggregationAdapter(new ComparableMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the {@link java.math.BigDecimal} maximum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, BigDecimal, BigDecimal> bigDecimalMax() { return new AggregationAdapter(new BigDecimalMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to calculate the {@link java.math.BigDecimal} sum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT SUM(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the sum over all supplied values */ public static <Key, Value> Aggregation<Key, BigDecimal, BigDecimal> bigDecimalSum() { return new AggregationAdapter(new BigDecimalSumAggregation<Key, Value>()); }
/** * Returns an aggregation to find the minimum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMin() { return new AggregationAdapter(new ComparableMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the {@link java.math.BigInteger} maximum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, BigInteger, BigInteger> bigIntegerMax() { return new AggregationAdapter(new BigIntegerMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the double maximum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, Double, Double> doubleMax() { return new AggregationAdapter(new DoubleMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the maximum value of all supplied * {@link java.lang.Comparable} implementing values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, Comparable, Comparable> comparableMax() { return new AggregationAdapter(new ComparableMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the {@link java.math.BigDecimal} minimum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, BigDecimal, BigDecimal> bigDecimalMin() { return new AggregationAdapter(new BigDecimalMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the double minimum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Double, Double> doubleMin() { return new AggregationAdapter(new DoubleMinAggregation<Key, Value>()); }
/** * Returns an aggregation to calculate the long 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, Long, Long> longAvg() { return new AggregationAdapter(new LongAvgAggregation<Key, Value>()); }
/** * Returns an aggregation to find the integer maximum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, Integer, Integer> integerMax() { return new AggregationAdapter(new IntegerMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the {@link java.math.BigInteger} maximum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, BigInteger, BigInteger> bigIntegerMax() { return new AggregationAdapter(new BigIntegerMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the {@link java.math.BigInteger} minimum * of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, BigInteger, BigInteger> bigIntegerMin() { return new AggregationAdapter(new BigIntegerMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the double maximum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MAX(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the maximum value over all supplied values */ public static <Key, Value> Aggregation<Key, Double, Double> doubleMax() { return new AggregationAdapter(new DoubleMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to find the long minimum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Long, Long> longMin() { return new AggregationAdapter(new LongMinAggregation<Key, Value>()); }
/** * Returns an aggregation to find the integer minimum of all supplied values.<br/> * This aggregation is similar to: <pre>SELECT MIN(value) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the minimum value over all supplied values */ public static <Key, Value> Aggregation<Key, Integer, Integer> integerMin() { return new AggregationAdapter(new IntegerMinAggregation<Key, Value>()); }
/** * Returns an aggregation for counting all supplied values.<br/> * This aggregation is similar to: <pre>SELECT COUNT(*) FROM x</pre> * * @param <Key> the input key type * @param <Value> the supplied value type * @return the count of all supplied elements */ public static <Key, Value> Aggregation<Key, Value, Long> count() { return new AggregationAdapter(new CountAggregation<Key, Value>()); }