presto-spi/src/main/java/io/prestosql/spi/type/TypeUtils.java/TypeUtils/hashPosition
class TypeUtils:    static long hashPosition(Type type, Block block, int position)
    {
        if (block.isNull(position)) {
            return NULL_HASH_CODE;
        }
        return type.hash(block, position);
    }