@Override
  default Type getType() {
    return PrivateCellUtil.code2Type(getTypeByte());
  }
Typically, at server side, you'd better always use the {@link #getTypeByte()} as this method
does not expose the {@code Maximum} and {@code Minimum} because they will not be returned to
client, but at server side, we do have cells with these types so if you use this method it will
cause exceptions.
hbase-common/src/main/java/org/apache/hadoop/hbase/ExtendedCell.java