private void serializeTemplateSetInfo(
        final Map<PartialPath, List<Integer>> templateSetInfo,
        final DataOutputStream dataOutputStream)
        throws IOException {
      dataOutputStream.writeInt(templateSetInfo.size());
      for (final Map.Entry<PartialPath, List<Integer>> entry : templateSetInfo.entrySet()) {
        entry.getKey().serialize(dataOutputStream);
        dataOutputStream.writeInt(entry.getValue().size());
        for (final int templateId : entry.getValue()) {
          dataOutputStream.writeInt(templateId);
        }
      }
    }
This class provides the ability to serialize the given SchemaRegionPlan into binary data, which
is compatible with that of PhysicalPlan in 0.14 snapshot versions.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/logfile/visitor/SchemaRegionPlanSerializer.java