You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/07/17 03:23:06 UTC
[GitHub] [beam] boyuanzz commented on a change in pull request #12287: [BEAM-10341] Support drain in Java SDK
boyuanzz commented on a change in pull request #12287:
URL: https://github.com/apache/beam/pull/12287#discussion_r456196686
##########
File path: runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/graph/SplittableParDoExpander.java
##########
@@ -69,6 +69,31 @@ public static TransformReplacement createSizedReplacement() {
return SizedReplacement.INSTANCE;
}
+ /**
+ * Returns a transform replacement in drain mode which expands a splittable ParDo from:
+ *
+ * <pre>{@code
+ * sideInputA ---------\
+ * sideInputB ---------V
+ * mainInput ---> SplittableParDo --> outputA
+ * \-> outputB
+ * }</pre>
+ *
+ * into:
+ *
+ * <pre>{@code
+ * sideInputA ---------\---------------------\----------------------\--------------------------\
+ * sideInputB ---------V---------------------V----------------------V--------------------------V
+ * mainInput ---> PairWithRestriction --> SplitAndSize --> TruncateAndSize --> ProcessSizedElementsAndRestriction --> outputA
+ * \-> outputB
+ * }</pre>
+ *
+ * .
Review comment:
This required by checkstyleMain: The first sentence should be ended with a period.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org