presto-main/src/main/java/io/prestosql/operator/aggregation/TypedKeyValueHeap.java/TypedKeyValueHeap/TypedKeyValueHeap
class TypedKeyValueHeap:    public TypedKeyValueHeap(BlockComparator keyComparator, Type keyType, Type valueType, int capacity)
    {
        this.keyComparator = keyComparator;
        this.keyType = keyType;
        this.valueType = valueType;
        this.capacity = capacity;
        this.heapIndex = new int[capacity];
        this.keyBlockBuilder = keyType.createBlockBuilder(null, capacity);
        this.valueBlockBuilder = valueType.createBlockBuilder(null, capacity);
    }