jasperjiaguo commented on code in PR #8753:
URL: https://github.com/apache/pinot/pull/8753#discussion_r892748551
##########
pinot-common/src/main/java/org/apache/pinot/common/utils/FileUploadDownloadClient.java:
##########
@@ -1004,6 +1004,25 @@ public int downloadFile(URI uri, File dest, AuthProvider
authProvider, List<Head
return _httpClient.downloadFile(uri, HttpClient.DEFAULT_SOCKET_TIMEOUT_MS,
dest, authProvider, httpHeaders);
}
+ /**
+ * Download and untar a file.
Review Comment:
done
##########
pinot-common/src/main/java/org/apache/pinot/common/utils/fetcher/SegmentFetcherFactory.java:
##########
@@ -153,6 +153,16 @@ private void fetchSegmentToLocalInternal(URI uri, File
dest)
getSegmentFetcher(uri.getScheme()).fetchSegmentToLocal(uri, dest);
}
+ public static File fetchUntarToLocalStreamed(String uri, File tempRootDir,
long rateLimit)
Review Comment:
done
##########
pinot-common/src/main/java/org/apache/pinot/common/utils/fetcher/SegmentFetcherFactory.java:
##########
@@ -153,6 +153,16 @@ private void fetchSegmentToLocalInternal(URI uri, File
dest)
getSegmentFetcher(uri.getScheme()).fetchSegmentToLocal(uri, dest);
}
+ public static File fetchUntarToLocalStreamed(String uri, File tempRootDir,
long rateLimit)
+ throws Exception {
+ return getInstance().fetchUntarSegmentToLocalStreamedInternal(new
URI(uri), tempRootDir, rateLimit);
+ }
+
+ private File fetchUntarSegmentToLocalStreamedInternal(URI uri, File
tempRootDir, long rateLimit)
Review Comment:
done
--
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]