jackluo923 commented on code in PR #13782:
URL: https://github.com/apache/pinot/pull/13782#discussion_r1717393491


##########
pinot-common/src/main/java/org/apache/pinot/common/utils/TarCompressionUtils.java:
##########
@@ -66,106 +67,122 @@ public class TarGzCompressionUtils {
    */
 
 
-  private TarGzCompressionUtils() {
+  private TarCompressionUtils() {
   }
 
   public static final String TAR_GZ_FILE_EXTENSION = ".tar.gz";
+  public static final String TAR_LZ4_FILE_EXTENSION = ".tar.lz4";
+  public static final String TAR_ZST_FILE_EXTENSION = ".tar.zst";
+  public static final Map<String, String> COMPRESSOR_NAME_BY_FILE_EXTENSIONS = 
Map.of(
+      TAR_GZ_FILE_EXTENSION, CompressorStreamFactory.GZIP,
+      TAR_LZ4_FILE_EXTENSION, CompressorStreamFactory.LZ4_FRAMED,
+      TAR_ZST_FILE_EXTENSION, CompressorStreamFactory.ZSTANDARD
+  );
+  private static final CompressorStreamFactory COMPRESSOR_STREAM_FACTORY = new 
CompressorStreamFactory();

Review Comment:
   Switch to using singleleton



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