stankiewicz commented on code in PR #34902:
URL: https://github.com/apache/beam/pull/34902#discussion_r2360550046


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/values/WindowedValues.java:
##########
@@ -61,6 +66,172 @@
 public class WindowedValues {
   private WindowedValues() {} // non-instantiable utility class
 
+  public static <T> Builder<T> builder() {
+    return new Builder<>();
+  }
+
+  /** Create a Builder that takes element metadata from the provideed 
delegate. */
+  public static <T> Builder<T> builder(WindowedValue<T> template) {
+    return new Builder<T>()

Review Comment:
   thi is great, so if we start to expand with new fields, this is the place to 
propagate them. 



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