beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (BEAM-5427) Fix sample code (AverageFn) in
Date Fri, 21 Sep 2018 18:12:00 GMT


ASF GitHub Bot logged work on BEAM-5427:

                Author: ASF GitHub Bot
            Created on: 21/Sep/18 18:11
            Start Date: 21/Sep/18 18:11
    Worklog Time Spent: 10m 
      Work Description: youngoli commented on a change in pull request #6439: [BEAM-5427]
Fix and update sample code for CombineFn.

 File path: sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/
 @@ -254,10 +254,26 @@ private Combine() {
    * <pre>{@code
    * public class AverageFn extends CombineFn<Integer, AverageFn.Accum, Double> {
-   *   public static class Accum {
+   *   public static class Accum implements {
    *     int sum = 0;
    *     int count = 0;
+   *
+   *     {@literal @}Override
 Review comment:
   The \@literal tag shouldn't have those braces around it. It should look like this:
   `@literal @Override`
   One detail is that doing it that way will also display an extra space before the @Override,
so make sure to move the line back one space. If you're using IntelliJ you can easily see
what I mean by clicking on CombineFn and pressing Ctrl+Q to bring up the Quick Documentation
window, which renders this javadoc comment.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 146518)

> Fix sample code (AverageFn) in
> -------------------------------------------
>                 Key: BEAM-5427
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: examples-java
>            Reporter: Ruoyun Huang
>            Assignee: Ruoyun Huang
>            Priority: Minor
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
> Sample code missing coder. 
> In its current state, job run fails with Coder missing error. 

This message was sent by Atlassian JIRA

View raw message