public static Cell.Type code2Type(byte code) {
    Cell.Type t = CELL_TYPE_CODE_ARRAY[code & 0xff];
    if (t != null) {
      return t;
    }
    throw new UnsupportedOperationException("Invalid type of cell " + code);
  }
Returns ExtendedCellScanner interface over <code>cellIterable</code> or null if
<code>cells</code> is null
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java