walterddr commented on code in PR #10455:
URL: https://github.com/apache/pinot/pull/10455#discussion_r1145193532


##########
pinot-core/src/main/java/org/apache/pinot/core/routing/RoutingTable.java:
##########
@@ -25,16 +25,37 @@
 
 public class RoutingTable {
   private final Map<ServerInstance, List<String>> _serverInstanceToSegmentsMap;
+  private final Map<ServerInstance, Map<Integer, List<String>>> 
_serverInstanceToPartitionedSegmentsMap;
   private final List<String> _unavailableSegments;
   private final int _numPrunedSegments;
+  private final boolean _isPartitionRouting;
 
-  public RoutingTable(Map<ServerInstance, List<String>> 
serverInstanceToSegmentsMap, List<String> unavailableSegments,
-      int numPrunedSegments) {
+  public RoutingTable(Map<ServerInstance, List<String>> 
serverInstanceToSegmentsMap,
+      List<String> unavailableSegments, int numPrunedSegments) {
     _serverInstanceToSegmentsMap = serverInstanceToSegmentsMap;
+    _serverInstanceToPartitionedSegmentsMap = null;
+    _isPartitionRouting = false;
     _unavailableSegments = unavailableSegments;
     _numPrunedSegments = numPrunedSegments;
   }
 
+  public RoutingTable(Map<ServerInstance, Map<Integer, List<String>>> 
serverInstanceToPartitionedSegmentsMap,
+      List<String> unavailableSegments, int numPrunedSegments, boolean 
isPartitionRouting) {
+    _serverInstanceToPartitionedSegmentsMap = 
serverInstanceToPartitionedSegmentsMap;
+    _serverInstanceToSegmentsMap = null;
+    _isPartitionRouting = isPartitionRouting;
+    _unavailableSegments = unavailableSegments;
+    _numPrunedSegments = numPrunedSegments;
+  }
+
+  public boolean isPartitionRouting() {
+    return _isPartitionRouting;
+  }
+
+  public Map<ServerInstance, Map<Integer, List<String>>> 
getServerInstanceToPartitionedSegmentsMap() {

Review Comment:
   this change should not be in this PR. will revert and add in separate PR



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to