public static Object convertByte(byte[] hbaseData, String type){
        if(type == null){
            return new String(hbaseData);
        }

        switch (type.toLowerCase()) {
            case "boolean":
                return Bytes.toBoolean(hbaseData);

            case "int":
                return Bytes.toInt(hbaseData);

            case "bigint":
                return Bytes.toLong(hbaseData);

            case "tinyint":
            case "byte":
                return ByteUtils.bytes2Byte(hbaseData);

            case "short":
            case "smallint":
                return Bytes.toShort(hbaseData);

            case "char":
            case "varchar":
            case "string":
                return Bytes.toString(hbaseData);

            case "float":
                return Bytes.toFloat(hbaseData);

            case "double":
                return Bytes.toDouble(hbaseData);
            case "decimal":
                return Bytes.toBigDecimal(hbaseData);
            default:
                throw new RuntimeException("not support type of " + type);
        }
    }
Reason:
Date: 2018/9/10
Company: www.dtstack.com

@author xuchao
hbase/hbase-side/hbase-side-core/src/main/java/com/dtstack/flink/sql/side/hbase/utils/HbaseUtils.java