You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Bikas Saha (JIRA)" <ji...@apache.org> on 2014/04/16 19:46:16 UTC

[jira] [Commented] (TEZ-1062) Create SimpleProcessor for processors that only need to implement the run method

    [ https://issues.apache.org/jira/browse/TEZ-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971715#comment-13971715 ] 

Bikas Saha commented on TEZ-1062:
---------------------------------

[~kamrul] This is motivated by the discussion we had on TEZ-700 about simplifying most of the existing processors we currently have. We skipped that in TEZ-700 but we can now base on TEZ-695 and create another abstract class SimpleProcessor that provides impls for all base methods except for the run method. We can use your suggestion of having simpleprocessor.run(Map<Inputs, Outputs>) call input.start() and then call real.run(). Similar to what we did for the initialize() method. This will really simplify writing simple processors.
This wont work for Input/Output since they usually have to handle events (unlike Processor). What do you think?

> Create SimpleProcessor for processors that only need to implement the run method
> --------------------------------------------------------------------------------
>
>                 Key: TEZ-1062
>                 URL: https://issues.apache.org/jira/browse/TEZ-1062
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Bikas Saha
>
> The SimpleProcessor could take care of all things like starting input, committing outputs. It would handle no events, since simple processors dont need to handle inputs. Thus the user would only need to implement their custom task logic in a new execute() method.



--
This message was sent by Atlassian JIRA
(v6.2#6252)