hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghotham Murthy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-771) QueryPlan getStageType and getOperatorType should use a hash map instead of the big if
Date Mon, 24 Aug 2009 22:52:59 GMT

    [ https://issues.apache.org/jira/browse/HIVE-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747126#action_12747126
] 

Raghotham Murthy commented on HIVE-771:
---------------------------------------

Do you really need the maps of class to type? You can probably just remove the following:

In Operator.java:
+  Map<Class<?>, Integer> operatorTypes;

In QueryPlan.java:
+  private static Map<Class<?>, Integer> stageTypes;
+  private static Map<Class<?>, Integer> operatorTypes;

> QueryPlan getStageType and getOperatorType should use a hash map instead of the big if
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-771
>                 URL: https://issues.apache.org/jira/browse/HIVE-771
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Namit Jain
>            Assignee: Emil Ibrishimov
>         Attachments: HIVE-771.1.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message