You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Hitesh Shah (JIRA)" <ji...@apache.org> on 2013/10/24 16:34:04 UTC

[jira] [Commented] (TEZ-578) Derive all TezEvents from a base class that defines a type enum

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

Hitesh Shah commented on TEZ-578:
---------------------------------

[~bikassaha] A common enum cannot be used as there are some which are user visible types and others which are framework internal only. 

> Derive all TezEvents from a base class that defines a type enum
> ---------------------------------------------------------------
>
>                 Key: TEZ-578
>                 URL: https://issues.apache.org/jira/browse/TEZ-578
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Bikas Saha
>              Labels: newbie
>
> The type enum would be set in the event constructor and would help determine that type of the event. That much easier to code against than checking the class of an event in a bunch of if-else stmts. Also having an enum enables compiler checks for missing states in some cases.



--
This message was sent by Atlassian JIRA
(v6.1#6144)