shuwenwei commented on code in PR #16132:
URL: https://github.com/apache/iotdb/pull/16132#discussion_r2262529891


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/splitter/AlignedChunkData.java:
##########
@@ -291,26 +286,36 @@ public void writeDecodeValuePage(
     }
   }
 
-  protected void deserializeTsFileData(final InputStream stream) throws 
IOException, PageException {
+  protected void writeTsFileData(TsFileIOWriter writer) throws IOException, 
PageException {
+    final InputStream stream = new ByteArrayInputStream(chunkData);
     if (needDecodeChunk) {
-      buildChunkWriter(stream);
+      writeChunkToWriter(stream, writer);
     } else {
-      deserializeEntireChunk(stream);
+      writeEntireChunkToWriter(stream, writer);
+    }
+  }
+
+  protected void deserializeTsFileDataByte(final InputStream stream) throws 
IOException {

Review Comment:
   Maybe we can use the existing buffer instead of the current input stream, 
which can avoid a memory copy



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

Reply via email to