zhujt20 commented on code in PR #415: URL: https://github.com/apache/tsfile/pull/415#discussion_r1970810678
########## java/tsfile/src/main/java/org/apache/tsfile/write/chunk/ChunkWriterImpl.java: ########## @@ -527,4 +527,21 @@ public void setLastPoint(boolean isLastPoint) { public PageWriter getPageWriter() { return pageWriter; } + + public int getNumOfPages() { + return numOfPages; + } + + public ByteBuffer getByteBuffer() { + ByteBuffer copy = ByteBuffer.allocate(pageBuffer.size()); + copy.put(pageBuffer.toByteArray()); + copy.flip(); + return copy; Review Comment: Actually I write this mainly for get rid of the relation between the new chunk and the new chunkwriter so that the chunkwriter can be destructed quickly. If it's not important, I'll change it. -- 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: notifications-unsubscr...@tsfile.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org