class HbaseSchemaUtils {

    public static Types.MinorType inferType(byte[] value)
    {
        String strVal = Bytes.toString(value);
        try {
            Long.valueOf(strVal);
            return Types.MinorType.BIGINT;
        }
        catch (RuntimeException ex) {
        }

        try {
            Double.valueOf(strVal);
            return Types.MinorType.FLOAT8;
        }
        catch (RuntimeException ex) {
        }

        return Types.MinorType.VARCHAR;
    }

    private  HbaseSchemaUtils();

}