public static TableName getTableNameFor(Table table) {
    return TableName.fromString(table.getTableName().toLowerCase(), table.getCatName().toLowerCase(), table.getDbName().toLowerCase(), null);
  }
Get order specs from a represented string.
@param order specified in partColIndex[,partColIndex]*:[-|\+]+ pattern
@return the order specs
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java