presto-main/src/main/java/io/prestosql/operator/aggregation/histogram/Histogram.java/Histogram/output
class Histogram:    public static void output(Type type, HistogramState state, BlockBuilder out)
    {
        TypedHistogram typedHistogram = state.get();
        typedHistogram.serialize(out);
    }