Package io.trino.operator.aggregation
Class NumericHistogram
- java.lang.Object
-
- io.trino.operator.aggregation.NumericHistogram
-
public class NumericHistogram extends Object
-
-
Constructor Summary
Constructors Constructor Description NumericHistogram(int maxBuckets)NumericHistogram(int maxBuckets, int buffer)NumericHistogram(io.airlift.slice.Slice serialized, int buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double value)voidadd(double value, double weight)longestimatedInMemorySize()Map<Double,Double>getBuckets()voidmergeWith(NumericHistogram other)io.airlift.slice.Sliceserialize()
-
-
-
Method Detail
-
serialize
public io.airlift.slice.Slice serialize()
-
estimatedInMemorySize
public long estimatedInMemorySize()
-
add
public void add(double value)
-
add
public void add(double value, double weight)
-
mergeWith
public void mergeWith(NumericHistogram other)
-
-