[ https://issues.apache.org/jira/browse/BEAM-14320?focusedWorklogId=761157&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-761157 ]
ASF GitHub Bot logged work on BEAM-14320: ----------------------------------------- Author: ASF GitHub Bot Created on: 23/Apr/22 00:00 Start Date: 23/Apr/22 00:00 Worklog Time Spent: 10m Work Description: pcoet commented on code in PR #17369: URL: https://github.com/apache/beam/pull/17369#discussion_r856674033 ########## website/www/site/content/en/documentation/programming-guide.md: ########## @@ -1100,7 +1100,7 @@ tree, [2] Thus, `GroupByKey` represents a transform from a multimap (multiple keys to individual values) to a uni-map (unique keys to collections of values). -Using <span class="language-java">`GroupByKey`</span> is straightforward: +<span class="language-java">Using `GroupByKey` is straightforward: Review Comment: @denisecase Sorry, just this line, 1103, should be wrapped in `language-java` class. Issue Time Tracking ------------------- Worklog Id: (was: 761157) Time Spent: 50m (was: 40m) > Update programming-guide w/Java GroupByKey example > -------------------------------------------------- > > Key: BEAM-14320 > URL: https://issues.apache.org/jira/browse/BEAM-14320 > Project: Beam > Issue Type: Task > Components: website > Reporter: Denise Case > Assignee: Denise Case > Priority: P3 > Labels: apache-beam, website > Time Spent: 50m > Remaining Estimate: 0h > > Minor addition to assist new users with a GroupByKey example in Java. > Specifically: > Add the following content to provide a Java example at the end of section > 4.2.2. GroupByKey. > ------------------ > Using {{GroupByKey}} is straightforward: > {\{< highlight java >}} > // The input PCollection. > PCollection<KV<String, String>> mapped = ...; > // Apply GroupByKey to the PCollection mapped. > // Save the result as the PCollection reduced. > PCollection<KV<String, Iterable>> reduced = > mapped.apply(GroupByKey.<String, String>create()); > {\{< /highlight >}} -- This message was sent by Atlassian Jira (v8.20.7#820007)