@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PartitionInfo that = (PartitionInfo) o;
    return nextRegionGroupId.get() == that.nextRegionGroupId.get()
        && databasePartitionTables.equals(that.databasePartitionTables)
        && regionMaintainTaskList.equals(that.regionMaintainTaskList);
  }
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