presto-main/src/main/java/io/prestosql/operator/aggregation/minmaxby/MinMaxByNStateSerializer.java/MinMaxByNStateSerializer/deserialize
class MinMaxByNStateSerializer:    @Override
    public void deserialize(Block block, int index, MinMaxByNState state)
    {
        Block currentBlock = (Block) serializedType.getObject(block, index);
        state.setTypedKeyValueHeap(TypedKeyValueHeap.deserialize(currentBlock, keyType, valueType, blockComparator));
    }