Class AnyLongAggregator

java.lang.Object
org.elasticsearch.compute.aggregation.AnyLongAggregator

public class AnyLongAggregator extends Object
An aggregator that retrieves the first value it encounters. It is useful in cases where we want to get back the first (or last) value of a field, where the sort field is either null or a constant literal. In such cases, any value from the search field will suffice, and the state needs to be updated at most once. This class is generated. Edit `X-AnyValueAggregator.java.st` instead.