presto-hive/src/main/java/io/prestosql/plugin/hive/util/HiveBucketingV2.java/HiveBucketingV2/bytes
class HiveBucketingV2:    @SuppressWarnings("NumericCastThatLosesPrecision")
    private static byte[] bytes(int value)
    {
        return new byte[] {(byte) ((value >> 24) & 0xff), (byte) ((value >> 16) & 0xff), (byte) ((value >> 8) & 0xff), (byte) (value & 0xff)};
    }