ahmedabu98 commented on code in PR #31470:
URL: https://github.com/apache/beam/pull/31470#discussion_r1624941076
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionRowTuple.java:
##########
@@ -180,6 +181,22 @@ public PCollection<Row> get(String tag) {
return pcollection;
}
+ /**
+ * Like {@link #get(String)}, but is a convenience method to get a single
output without providing
+ * a tag for that output. Use only when there is a single output.
+ *
+ * <p>Throws {@link IllegalStateException} if more than one output exists in
the {@link
+ * PCollectionRowTuple}.
+ */
+ public PCollection<Row> getOutput() {
Review Comment:
Renamed to `getSinglePCollection()`
--
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]