public boolean in(TableFormat... tableFormats) {
    for (TableFormat tableFormat : tableFormats) {
      if (this.equals(tableFormat)) {
        return true;
      }
    }
    return false;
  }
Get TableFormat by name

@param name name
@return TableFormat
amoro-common/src/main/java/org/apache/amoro/TableFormat.java