public Map<String, List<TConsensusGroupId>> getAllRegionGroupIdMap(TConsensusGroupType type) {
    return partitionInfo.getAllRegionGroupIdMap(type);
  }
Only leader use this interface.

<p>Get the all RegionGroups currently in the cluster

@param type SchemaRegion or DataRegion
@return Map<Database, List<RegionGroupIds>>
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java