Package com.gigaspaces.query.aggregators
Class AggregationSet
java.lang.Object
com.gigaspaces.query.aggregators.AggregationSet
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
The set of aggregations to run for matches entries of the aggregate operation.
- Since:
- 10.0
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(SpaceEntriesAggregator aggregator) Calculates average of path values of matching entries, infers the return type of the path.booleancount()Counts matching entries.Counts matching entries whose path is not null.distinct(DistinctAggregator aggregator) groupBy(GroupByAggregator aggregator) Returns entry with maximum value of path of matching entries.Returns maximum value of path of matching entries.Returns entry with minimum value of path of matching entries.Returns minimum value of path of matching entries.orderBy(OrderByAggregator aggregator) voidSums values of paths of matching entries, infers the return type of the path.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
AggregationSet
public AggregationSet()
-
-
Method Details
-
add
-
count
Counts matching entries. -
count
Counts matching entries whose path is not null.- Parameters:
path- Path to inspect
-
sum
Sums values of paths of matching entries, infers the return type of the path.- Parameters:
path- Path to sum (must be a numeric type)
-
average
Calculates average of path values of matching entries, infers the return type of the path.- Parameters:
path- Path to average (must be a numeric type)
-
maxValue
Returns maximum value of path of matching entries.- Parameters:
path- Path to inspect (must be a comparable type)- See Also:
-
maxEntry
Returns entry with maximum value of path of matching entries.- Parameters:
path- Path to inspect (must be a comparable type)- See Also:
-
minValue
Returns minimum value of path of matching entries.- Parameters:
path- Path to inspect (must be a comparable type)- See Also:
-
minEntry
Returns entry with minimum value of path of matching entries.- Parameters:
path- Path to inspect (must be a comparable type)- See Also:
-
groupBy
-
orderBy
-
distinct
-
getAggregators
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
containsOrderByAggregator
public boolean containsOrderByAggregator()
-