acrites commented on code in PR #41692:
URL: https://github.com/apache/beam/pull/41692#discussion_r4744717267
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ElementByteSizeObserver.java:
##########
@@ -53,6 +53,21 @@ public boolean getIsLazy() {
return isLazy;
}
+ /**
+ * Updates the observer with the byte size of an element piece without
boxing.
+ *
+ * <p>Subclasses that override {@link #update(Object)} or {@link
#update(Observable, Object)} must
+ * also override this method if they intercept all updates, as this method
updates internal state
+ * directly rather than delegating to those overloads.
+ */
+ public void update(long bytes) {
Review Comment:
Thanks! I didn't realize Reuven and I were racing. I've dropped the changes
in this file.
--
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]