You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/02 03:23:00 UTC

[jira] [Work logged] (BEAM-3979) New DoFn should allow injecting of all parameters in ProcessContext

     [ https://issues.apache.org/jira/browse/BEAM-3979?focusedWorklogId=86452&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-86452 ]

ASF GitHub Bot logged work on BEAM-3979:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Apr/18 03:22
            Start Date: 02/Apr/18 03:22
    Worklog Time Spent: 10m 
      Work Description: reuvenlax opened a new pull request #4989: [BEAM-3979] Start completing the new DoFn vision: plumb context parameters into process functions.
URL: https://github.com/apache/beam/pull/4989
 
 
   This PR starts plumbing remaining parameters directly to function arguments, eliminating the need for ProcessContext of TimerContext in most places. For example, a WordCap ParDo might now contain the following:
   
   @ProcessElement
   public void process(@Element String word, OutputReceiver receiver) {
     receiver.output(word.toUpperCase());
   }
   
   The majority of arguments (element, timestamp, pane, output receiver, time domain) are plumbed in this PR. This PR does not yet add support for finish-bundle output or for side inputs; both require some design discussion first, which will happen on the dev list.
   
   R: @kennknowles 

----------------------------------------------------------------
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:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 86452)
            Time Spent: 10m
    Remaining Estimate: 0h

> New DoFn should allow injecting of all parameters in ProcessContext
> -------------------------------------------------------------------
>
>                 Key: BEAM-3979
>                 URL: https://issues.apache.org/jira/browse/BEAM-3979
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>    Affects Versions: 2.4.0
>            Reporter: Reuven Lax
>            Assignee: Reuven Lax
>            Priority: Major
>             Fix For: 2.5.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This was intended in the past, but never completed. Ideally all primitive parameters in ProcessContext should be injectable, and OutputReceiver parameters can be used to collection output. So, we should be able to write a DoFn as follows
> @ProcessElement
> public void process(@Element String word, OutputReceiver<String> receiver) {
>   receiver.output(word.toUpperCase());
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)