liuzqt commented on code in PR #38064:
URL: https://github.com/apache/spark/pull/38064#discussion_r1001123093
##########
core/src/main/scala/org/apache/spark/util/io/ChunkedByteBuffer.scala:
##########
@@ -56,7 +57,13 @@ private[spark] class ChunkedByteBuffer(var chunks:
Array[ByteBuffer]) {
/**
* This size of this buffer, in bytes.
*/
- val size: Long = chunks.map(_.limit().asInstanceOf[Long]).sum
+ private var _size: Long = chunks.map(_.limit().asInstanceOf[Long]).sum
Review Comment:
Yes, I added a comment for explanation. Thanks.
--
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]