public void getDataRegionIds(List<String> databases, Map<String, List<Integer>> dataRegionIds) {
    for (String database : databases) {
      if (databasePartitionTables.containsKey(database)) {
        dataRegionIds.put(database, databasePartitionTables.get(database).getDataRegionIds());
      }
    }
  }
Get the timePartition of the specific Database or seriesSlotId(device) or regionId.

@param plan GetRegionIdPlan with the specific Database ,seriesSlotId(device) , regionId.
@return GetRegionIdResp with STATUS and List{@literal <}TTimePartitionSlot{@literal >}.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java