private void serializeTableNode(final ConfigTableNode tableNode, final OutputStream outputStream)
      throws IOException {
    ReadWriteIOUtils.write(TABLE_MNODE_TYPE, outputStream);
    ReadWriteIOUtils.write(tableNode.getName(), outputStream);
    tableNode.getTable().serialize(outputStream);
    tableNode.getStatus().serialize(outputStream);
    final Set<String> preDeletedColumns = tableNode.getPreDeletedColumns();
    ReadWriteIOUtils.write(preDeletedColumns.size(), outputStream);
    for (final String column : preDeletedColumns) {
      ReadWriteIOUtils.write(column, outputStream);
    }
  }
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