public List<TConsensusGroupId> getRegionId(
      TSeriesPartitionSlot seriesSlotId,
      TTimePartitionSlot startTimeSlotId,
      TTimePartitionSlot endTimeSlotId) {
    if (seriesSlotId.getSlotId() == -1) {
      List<TConsensusGroupId> regionIds = new ArrayList<>();
      dataPartitionMap.forEach(
          (seriesPartitionSlot, seriesPartitionTable) ->
              regionIds.addAll(seriesPartitionTable.getRegionId(startTimeSlotId, endTimeSlotId)));
      return regionIds;
    } else if (!dataPartitionMap.containsKey(seriesSlotId)) {
      return new ArrayList<>();
    } else {
      SeriesPartitionTable seriesPartitionTable = dataPartitionMap.get(seriesSlotId);
      return seriesPartitionTable.getRegionId(startTimeSlotId, endTimeSlotId);
    }
  }
Query a timePartition's corresponding dataRegionIds

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