public List<TTimePartitionSlot> getTimeSlotList(
      TConsensusGroupId regionId, long startTime, long endTime) {
    if (regionId.getId() == -1) {
      return seriesPartitionMap.keySet().stream()
          .filter(e -> e.getStartTime() >= startTime && e.getStartTime() < endTime)
          .collect(Collectors.toList());
    } else {
      return seriesPartitionMap.keySet().stream()
          .filter(e -> e.getStartTime() >= startTime && e.getStartTime() < endTime)
          .filter(e -> seriesPartitionMap.get(e).contains(regionId))
          .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