the type of the Map entry keys
the type of the Map entry values
the extracted type
Constructs a new TopAggregator
.
the number of results to include in the aggregation result
Protected
@classServer-side EntryAggregator implementation type identifier.
Protected
extractorThe extractor to obtain the values to aggregate. If not explicitly set, this will default to an IdentityExtractor.
Protected
inverseResult order. By default, results will be ordered in descending order.
Protected
Optional
propertyThe property that results will be ordered by.
Protected
resultsThe maximum number of results to include in the aggregation result.
Returns a CompositeAggregator comprised of this and the provided aggregator.
a CompositeAggregator comprised of this and the provided aggregator
the next aggregator
Sort the returned values in ascending order.
Sort the returned values in descending order.
The property name of the value to extract.
the property name
Order the results based on the values of the specified property.
the property name
TopAggregator
aggregates the top N extracted values into an array. The extracted values must not benull
, but do not need to be unique.