tejasiyer-dev commented on code in PR #41593:
URL: https://github.com/apache/beam/pull/41593#discussion_r4762293459


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/DoFn.java:
##########
@@ -427,10 +427,47 @@ public TypeDescriptor<OutputT> getOutputTypeDescriptor() {
     return new TypeDescriptor<OutputT>(getClass()) {};
   }
 
+  /**
+   * Receives values of the given type with explicit timestamp, window(s), and 
{@link PaneInfo}.
+   *
+   * <p>Used in contexts without an implicit input element (such as {@link
+   * FinishBundle @FinishBundle}).
+   */
+  public interface WindowedOutputReceiver<T> {

Review Comment:
   Good point. I think #2 is the better option:
   
   - Removed the two `outputWindowedValue(...)` convenience methods from 
`WindowedOutputReceiver` so it only exposes `builder(value, timestamp, windows, 
paneInfo)`.
   - Left `outputWindowedValue(...)` intact on `OutputReceiver` for backwards 
compatibility.
   - Updated the `@FinishBundle` tests and follow up PR #41850 to use 
`.builder(...).output()`.
   



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