public Set<TTimePartitionSlot> autoCleanPartitionTable(
      long TTL, TTimePartitionSlot currentTimeSlot) {
    Set<TTimePartitionSlot> removedTimePartitionSlots = new HashSet<>();
    dataPartitionMap.forEach(
        (seriesPartitionSlot, seriesPartitionTable) ->
            removedTimePartitionSlots.addAll(
                seriesPartitionTable.autoCleanPartitionTable(TTL, currentTimeSlot)));
    return removedTimePartitionSlots;
  }
Remove PartitionTable where the TimeSlot is expired.

@param TTL The Time To Live
@param currentTimeSlot The current TimeSlot
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/DataPartitionTable.java