public static byte[] shortToByte4(short i) {
        byte[] targets = new byte[2];
        targets[1] = (byte) (i & 0xFF);
        targets[0] = (byte) (i >> 8 & 0xFF);
        return targets;
    }
Date: 2018/8/28
Company: www.dtstack.com
@author xuchao
core/src/main/java/com/dtstack/flink/sql/util/ByteUtils.java