public void serialize(OutputStream outputStream, TProtocol protocol)
      throws IOException, TException {
    ReadWriteIOUtils.write(schemaPartitionMap.size(), outputStream);
    for (Map.Entry<TSeriesPartitionSlot, TConsensusGroupId> schemaPartitionEntry :
        schemaPartitionMap.entrySet()) {
      schemaPartitionEntry.getKey().write(protocol);
      schemaPartitionEntry.getValue().write(protocol);
    }
  }
Query a timePartition's corresponding schemaRegionIds

@param seriesSlotId SeriesPartitionSlot
@return the timePartition's corresponding dataRegionIds, if seriesSlotId==-1, then return all
    seriesPartitionTable's schemaRegionIds;
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/SchemaPartitionTable.java