You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/10/28 00:04:01 UTC
[GitHub] [pinot] jackjlli commented on a change in pull request #7651: Add getSelectedSegments API
jackjlli commented on a change in pull request #7651:
URL: https://github.com/apache/pinot/pull/7651#discussion_r737929215
##########
File path: pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotSegmentRestletResource.java
##########
@@ -657,6 +663,42 @@ public String getServerMetadata(
return segmentsMetadata;
}
+ @GET
+ @Path("segments/{tableName}/select")
+ @Produces(MediaType.APPLICATION_JSON)
+ @ApiOperation(value = "Get the selected segments given the (inclusive) start and (exclusive) end timestamps"
+ + " in milliseconds. If no timestamps are provided, all the segments will be returned.",
+ notes = "Get the selected segments given the start and end timestamps in milliseconds")
+ public List<Map<TableType, List<String>>> getSelectedSegments(
Review comment:
If the table is a refresh use case, the value of start and end timestamp is voided, since there is no time column for refresh use case; instead, the whole qualified segments will be returned.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org