Record Class FilteredAggregatorFunction

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

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

This works by running the filter and providing its results in the mask parameter for addRawInput(org.elasticsearch.compute.data.Page, org.elasticsearch.compute.data.BooleanVector).