public void renameTable(final PartialPath database, final String tableName, final String newName)
      throws MetadataException {
    final IConfigMNode databaseNode = getDatabaseNodeByDatabasePath(database).getAsMNode();
    final ConfigTableNode tableNode = (ConfigTableNode) databaseNode.getChild(tableName);
    store.deleteChild(databaseNode, tableName);
    tableNode.setName(newName);
    store.addChild(databaseNode, newName, tableNode);
  }
This method returns the templateId set on paths if the path set matches or is a prefix of input
path pattern.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ConfigMTree.java