/** * Returns an aggregation to calculate the {@link java.math.BigInteger} 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, BigInteger, BigInteger> bigIntegerSum() { return new AggregationAdapter(new BigIntegerSumAggregation<Key, Value>()); }
/** * Returns an aggregation to calculate the {@link java.math.BigInteger} 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, BigInteger, BigInteger> bigIntegerAvg() { return new AggregationAdapter(new BigIntegerAvgAggregation<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 calculate the {@link java.math.BigDecimal} 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, BigDecimal, BigDecimal> bigDecimalAvg() { return new AggregationAdapter(new BigDecimalAvgAggregation<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 find the long 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, Long, Long> longMax() { return new AggregationAdapter(new LongMaxAggregation<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 calculate the integer 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, Integer, Integer> integerSum() { return new AggregationAdapter(new IntegerSumAggregation<Key, Value>()); }
/** * 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 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 calculate the long 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, Long, Long> longSum() { return new AggregationAdapter(new LongSumAggregation<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 {@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 calculate the {@link java.math.BigInteger} 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, BigInteger, BigInteger> bigIntegerSum() { return new AggregationAdapter(new BigIntegerSumAggregation<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 calculate the double 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, Double, Double> doubleAvg() { return new AggregationAdapter(new DoubleAvgAggregation<Key, Value>()); }
/** * Returns an aggregation to find the long 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, Long, Long> longMax() { return new AggregationAdapter(new LongMaxAggregation<Key, Value>()); }
/** * Returns an aggregation to calculate the integer 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, Integer, Integer> integerSum() { return new AggregationAdapter(new IntegerSumAggregation<Key, Value>()); }
/** * 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>()); }