public List<TConsensusGroupId> getRegionId(
      TTimePartitionSlot startTimeSlotId, TTimePartitionSlot endTimeSlotId) {
    return seriesPartitionMap.entrySet().stream()
        .filter(
            entry ->
                entry.getKey().getStartTime() >= startTimeSlotId.getStartTime()
                    && entry.getKey().getStartTime() <= endTimeSlotId.getStartTime())
        .flatMap(entry -> entry.getValue().stream())
        .collect(Collectors.toList());
  }
Query a timePartition's corresponding dataRegionIds.

@param startTimeSlotId start Time partition's timeSlotId
@param endTimeSlotId end Time partition's timeSlotId
@return the timePartition's corresponding dataRegionIds. return the dataRegions which
    timeslotIds are in the time range [startTimeSlotId, endTimeSlotId].
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/SeriesPartitionTable.java