CRZbulabula commented on code in PR #7287:
URL: https://github.com/apache/iotdb/pull/7287#discussion_r969126548


##########
confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/RegionGroup.java:
##########
@@ -28,27 +29,34 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.util.Map;
 import java.util.Objects;
+import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.atomic.AtomicLong;
 
 public class RegionGroup {
 
   private final TRegionReplicaSet replicaSet;
 
+  // Map<TSeriesPartitionSlot, TTimePartitionSlot Count>
+  // For SchemaRegion, each SeriesSlot constitute a SchemaPartition.
   // For DataRegion, a SeriesSlot and a TimeSlot constitute a DataPartition.
   // Eg: A DataRegion contains SeriesSlot-1 which has TimeSlot-1, TimeSlot-2 
and Timeslot-3,
   // then (SeriesSlot-1 -> TimeSlot-1) constitute a DataPartition.
-  // For SchemaRegion, each SeriesSlot constitute a SchemaPartition.
-  private final AtomicLong slotCount;
+  private final Map<TSeriesPartitionSlot, AtomicLong> slotCountMap;

Review Comment:
   The value of Map<TSeriesPartitionSlot, AtomicLong> will be used to show the 
TimeSlotCount of show regions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to