presto-hive/src/main/java/io/prestosql/plugin/hive/util/HiveBucketingV1.java/HiveBucketingV1/getBucketHashCode
class HiveBucketingV1:    static int getBucketHashCode(List<TypeInfo> types, Page page, int position)
    {
        checkArgument(types.size() == page.getChannelCount());
        int result = 0;
        for (int i = 0; i < page.getChannelCount(); i++) {
            int fieldHash = hash(types.get(i), page.getBlock(i), position);
            result = result * 31 + fieldHash;
        }
        return result;
    }