SteveYurongSu commented on code in PR #9231:
URL: https://github.com/apache/iotdb/pull/9231#discussion_r1129020921
##########
tsfile/src/main/java/org/apache/iotdb/tsfile/compress/IUnCompressor.java:
##########
@@ -312,4 +315,45 @@ public CompressionType getCodecName() {
return CompressionType.GZIP;
}
}
+
+ class ZstdUnCompressor implements IUnCompressor {
+
+ @Override
+ public int getUncompressedLength(byte[] array, int offset, int length)
throws IOException {
+ return (int) Zstd.decompressedSize(array, offset, length);
+ }
+
+ @Override
+ public int getUncompressedLength(ByteBuffer buffer) throws IOException {
+ return (int) Zstd.decompressedSize(buffer);
Review Comment:
Is this a time-consuming call?
##########
tsfile/src/main/java/org/apache/iotdb/tsfile/compress/IUnCompressor.java:
##########
@@ -312,4 +315,45 @@ public CompressionType getCodecName() {
return CompressionType.GZIP;
}
}
+
+ class ZstdUnCompressor implements IUnCompressor {
+
+ @Override
+ public int getUncompressedLength(byte[] array, int offset, int length)
throws IOException {
+ return (int) Zstd.decompressedSize(array, offset, length);
Review Comment:
Is this a time-consuming call?
--
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]