Static
averageReturn an aggregator that calculates a average of the numeric values extracted from a set of entries in a Map.
an aggregator that calculates a average of the numeric values extracted from a set of entries in a Map
the type of the entry's key
the type of the entry's value
the extractor or method/property name to provide values for aggregation
Static
countReturn an aggregator that calculates a number of values in an entry set.
an aggregator that calculates a number of values in an entry set
the type of the entry's key
the type of the entry's value
Static
distinctReturn an aggregator that calculates the set of distinct values from the entries in a Map.
an aggregator that calculates the set of distinct values from the entries in a Map
the extractor or method/property name to provide values for aggregation
Static
groupReturn a GroupAggregator based on a specified property or method name(s) and an EntryAggregator.
a new GroupAggregator
the type of the Map entry keys
the type of the Map entry values
the type of the value to extract from
the type of the extracted value
the type of the group aggregator result
the extractor or method/property name to provide values for aggregation
an underlying EntryAggregator
an optional Filter object used to filter out results of individual group aggregation results
Static
maxReturn an aggregator that calculates a maximum of the numeric values extracted from a set of entries in a Map.
an aggregator that calculates a maximum of the numeric values extracted from a set of entries in a Map
the extractor or method/property name to provide values for aggregation
Static
minReturn an aggregator that calculates a minimum of the numeric values extracted from a set of entries in a Map.
an aggregator that calculates a minimum of the numeric values extracted from a set of entries in a Map
the type of the entry's key
the type of the entry's value
the extractor or method/property name to provide values for aggregation
Static
priorityReturn a new PriorityAggregator to control scheduling priority of an aggregation operation.
the type of the Map entry keys
the type of the Map entry values
the type of the final result
the underlying EntryAggregator
the schedule priority
the execution timeout
the request timeout
Static
recordReturns a new QueryRecorder aggregator which may be used is used to produce an object that contains an estimated or actual cost of the query execution for a given Filter.
a new QueryRecorder aggregator which may be used is used to produce an object that contains an estimated or actual cost of the query execution for a given Filter
the type of the Map entry keys
the type of the Map entry values
the RecordType
Static
reduceReturn an aggregator that will return the extracted value for each entry in the map.
the type of the Map entry keys
the type of the Map entry values
extracted value type
the type of the group aggregator result
the extractor or method/property name to provide values for aggregation
Static
scriptReturn an aggregator that is implemented in a script using the specified language.
an aggregator that is implemented in a script using the specified language
the type of the Map entry keys
the type of the Map entry values
the type of the group aggregator result
the string specifying one of the supported languages
the aggregator name
arguments to pass to the aggregator
Static
sumReturn an aggregator that calculates a sum of the numeric values extracted from a set of entries in a Map.
an aggregator that calculates a sum of the numeric values extracted from a set of entries in a Map
the extractor or method/property name to provide values for aggregation
Static
topReturn an aggregator that aggregates the top N extracted values into an array.
the maximum number of results to include in the aggregation result
Simple Aggregator DSL.
Remarks
The methods in this class are for the most part simple factory methods for various EntryAggregator classes, but in some cases provide additional type safety. They also tend to make the code more readable, especially if imported statically, so their use is strongly encouraged in lieu of direct construction of EntryAggregator classes.