public static Type codeToType(final byte b) {
      Type t = codeArray[b & 0xff];
      if (t != null) {
        return t;
      }
      throw new RuntimeException("Unknown code " + b);
    }
Cannot rely on enum ordinals . They change if item is removed or moved. Do our own codes.
@param b the kv serialized byte[] to process
@return Type associated with passed code.
hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java