presto-main/src/main/java/io/prestosql/operator/aggregation/NumericHistogram.java/NumericHistogram/add
class NumericHistogram:    public void add(double value, double weight)
    {
        if (nextIndex == values.length) {
            compact();
        }

        values[nextIndex] = value;
        weights[nextIndex] = weight;

        nextIndex++;
    }