jt2594838 commented on code in PR #415:
URL: https://github.com/apache/tsfile/pull/415#discussion_r1970837504
##########
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:
This does not matter. `pageBuffer.toByteArray()` already copies the data.
--
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]