kennknowles commented on code in PR #34902: URL: https://github.com/apache/beam/pull/34902#discussion_r2081961073
########## sdks/java/core/src/main/java/org/apache/beam/sdk/util/WindowedValue.java: ########## @@ -59,16 +64,91 @@ @Internal public abstract class WindowedValue<T> { + public interface Outputter<T> { + void output(OutputBuilder<T> outputBuilder); + } + + /** Create a typical {@link OutputBuilder} that */ + public static <T> OutputBuilder<T> builder(Outputter<T> outputter) { + return new AutoBuilder_WindowedValue_Builder<T>().setOutputter(outputter); + } + + @AutoBuilder(callMethod = "of", ofClass = WindowedValue.class) Review Comment: I have to say this really only saves like a couple lines of code, so the `Auto` part is not very important. -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org