Jackie-Jiang commented on code in PR #11949:
URL: https://github.com/apache/pinot/pull/11949#discussion_r1391889826


##########
pinot-controller/src/main/java/org/apache/pinot/controller/util/TableMetadataReader.java:
##########
@@ -55,22 +55,34 @@ public TableMetadataReader(Executor executor, 
HttpClientConnectionManager connec
   }
 
   /**
-   * This method retrieves the full segment metadata for a given table.
-   * Currently supports only OFFLINE tables.
-   * @return a map of segmentName to its metadata
+   * This api takes in list of segments for which we need the metadata.
    */
-  public JsonNode getSegmentsMetadata(String tableNameWithType, List<String> 
columns, int timeoutMs)
+  public JsonNode getSegmentsMetadata(String tableNameWithType, List<String> 
columns, Set<String> segmentsToInclude,

Review Comment:
   Add `@Nullable` to `segmentsToInclude`



##########
pinot-controller/src/main/java/org/apache/pinot/controller/util/TableMetadataReader.java:
##########
@@ -55,22 +55,34 @@ public TableMetadataReader(Executor executor, 
HttpClientConnectionManager connec
   }
 
   /**
-   * This method retrieves the full segment metadata for a given table.
-   * Currently supports only OFFLINE tables.
-   * @return a map of segmentName to its metadata
+   * This api takes in list of segments for which we need the metadata.
    */
-  public JsonNode getSegmentsMetadata(String tableNameWithType, List<String> 
columns, int timeoutMs)
+  public JsonNode getSegmentsMetadata(String tableNameWithType, List<String> 
columns, Set<String> segmentsToInclude,
+      int timeoutMs)
       throws InvalidConfigException, IOException {
-    final Map<String, List<String>> serverToSegments =
+    return getSegmentsMetadataInternal(tableNameWithType, columns, 
segmentsToInclude, timeoutMs);
+  }
+
+  private JsonNode getSegmentsMetadataInternal(String tableNameWithType, 
List<String> columns,
+      Set<String> segmentsToInclude, int timeoutMs)

Review Comment:
   Add `@Nullable` to `segmentsToInclude`



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