Class ApproximateMostFrequentHistogram<K>

java.lang.Object
io.trino.operator.aggregation.ApproximateMostFrequentHistogram<K>

public class ApproximateMostFrequentHistogram<K> extends Object
Calculate the histogram approximately for topk elements based on the Space-Saving algorithm and the Stream-Summary data structure as described in: Efficient Computation of Frequent and Top-k Elements in Data Streams by Metwally, Agrawal, and Abbadi