|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.mapreduce.aggregation.Aggregations
@Beta public final class Aggregations
This class is used to access the Hazelcast predefined set of aggregations in a type-safe way.
Method Summary | ||
---|---|---|
static
|
bigDecimalAvg()
Returns an aggregation to calculate the BigDecimal average
of all supplied values.This aggregation is similar to |
|
static
|
bigDecimalMax()
Returns an aggregation to find the BigDecimal maximum
of all supplied values.This aggregation is similar to |
|
static
|
bigDecimalMin()
Returns an aggregation to find the BigDecimal minimum
of all supplied values.This aggregation is similar to |
|
static
|
bigDecimalSum()
Returns an aggregation to calculate the BigDecimal sum
of all supplied values.This aggregation is similar to |
|
static
|
bigIntegerAvg()
Returns an aggregation to calculate the BigInteger average
of all supplied values.This aggregation is similar to |
|
static
|
bigIntegerMax()
Returns an aggregation to find the BigInteger maximum
of all supplied values.This aggregation is similar to |
|
static
|
bigIntegerMin()
Returns an aggregation to find the BigInteger minimum
of all supplied values.This aggregation is similar to |
|
static
|
bigIntegerSum()
Returns an aggregation to calculate the BigInteger sum
of all supplied values.This aggregation is similar to |
|
static
|
comparableMax()
Returns an aggregation to find the maximum value of all supplied Comparable implementing values.This aggregation is similar to |
|
static
|
comparableMin()
Returns an aggregation to find the minimum value of all supplied Comparable implementing values.This aggregation is similar to |
|
static
|
count()
Returns an aggregation for counting all supplied values. This aggregation is similar to |
|
static
|
distinctValues()
Returns an aggregation for selecting all distinct values. This aggregation is similar to |
|
static
|
doubleAvg()
Returns an aggregation to calculate the double average of all supplied values. This aggregation is similar to |
|
static
|
doubleMax()
Returns an aggregation to find the double maximum of all supplied values. This aggregation is similar to |
|
static
|
doubleMin()
Returns an aggregation to find the double minimum of all supplied values. This aggregation is similar to |
|
static
|
doubleSum()
Returns an aggregation to calculate the double sum of all supplied values. This aggregation is similar to |
|
static
|
integerAvg()
Returns an aggregation to calculate the integer average of all supplied values. This aggregation is similar to |
|
static
|
integerMax()
Returns an aggregation to find the integer maximum of all supplied values. This aggregation is similar to |
|
static
|
integerMin()
Returns an aggregation to find the integer minimum of all supplied values. This aggregation is similar to |
|
static
|
integerSum()
Returns an aggregation to calculate the integer sum of all supplied values. This aggregation is similar to |
|
static
|
longAvg()
Returns an aggregation to calculate the long average of all supplied values. This aggregation is similar to |
|
static
|
longMax()
Returns an aggregation to find the long maximum of all supplied values. This aggregation is similar to |
|
static
|
longMin()
Returns an aggregation to find the long minimum of all supplied values. This aggregation is similar to |
|
static
|
longSum()
Returns an aggregation to calculate the long sum of all supplied values. This aggregation is similar to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <Key> Aggregation<Key,Object,Long> count()
SELECT COUNT(*) FROM x
Key
- the input key type
public static <Key,Value,DistinctType> Aggregation<Key,Value,Set<DistinctType>> distinctValues()
SELECT DISTINCT * FROM x
Key
- the input key typeValue
- the supplied value typeDistinctType
- the type of all distinct values
Set
containing all distinct valuespublic static <Key,Value> Aggregation<Key,Value,Integer> integerAvg()
SELECT AVG(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Integer,Integer> integerSum()
SELECT SUM(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Integer,Integer> integerMin()
SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Integer,Integer> integerMax()
SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Long,Long> longAvg()
SELECT AVG(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Long,Long> longSum()
SELECT SUM(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Long,Long> longMin()
SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Long,Long> longMax()
SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Double,Double> doubleAvg()
SELECT AVG(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Double,Double> doubleSum()
SELECT SUM(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Double,Double> doubleMin()
SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Double,Double> doubleMax()
SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigDecimal,BigDecimal> bigDecimalAvg()
BigDecimal
average
of all supplied values.SELECT AVG(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigDecimal,BigDecimal> bigDecimalSum()
BigDecimal
sum
of all supplied values.SELECT SUM(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigDecimal,BigDecimal> bigDecimalMin()
BigDecimal
minimum
of all supplied values.SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigDecimal,BigDecimal> bigDecimalMax()
BigDecimal
maximum
of all supplied values.SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigInteger,BigInteger> bigIntegerAvg()
BigInteger
average
of all supplied values.SELECT AVG(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigInteger,BigInteger> bigIntegerSum()
BigInteger
sum
of all supplied values.SELECT SUM(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigInteger,BigInteger> bigIntegerMin()
BigInteger
minimum
of all supplied values.SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,BigInteger,BigInteger> bigIntegerMax()
BigInteger
maximum
of all supplied values.SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Comparable,Comparable> comparableMin()
Comparable
implementing values.SELECT MIN(value) FROM x
Key
- the input key typeValue
- the supplied value type
public static <Key,Value> Aggregation<Key,Comparable,Comparable> comparableMax()
Comparable
implementing values.SELECT MAX(value) FROM x
Key
- the input key typeValue
- the supplied value type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |