presto-main/src/main/java/io/prestosql/operator/aggregation/TypedHeap.java/TypedHeap/pop
class TypedHeap:    public void pop(BlockBuilder resultBlockBuilder)
    {
        type.appendTo(heapBlockBuilder, heapIndex[0], resultBlockBuilder);
        remove();
    }