Record Class FilteredGroupingAggregatorFunction

java.lang.Object
java.lang.Record
org.elasticsearch.compute.aggregation.FilteredGroupingAggregatorFunction
All Implemented Interfaces:
Closeable, AutoCloseable, GroupingAggregatorFunction, Releasable

public record FilteredGroupingAggregatorFunction(GroupingAggregatorFunction next, ExpressionEvaluator filter) extends Record implements GroupingAggregatorFunction
A GroupingAggregatorFunction that wraps another, filtering which positions are supplied to the aggregator.

This filtering works by setting all of the group ids for filtered positions to null. GroupingAggregatorFunction will then skip collecting those positions.